From 5b9a51cdb13562cd3944be191f19a2bdff02f2f3 Mon Sep 17 00:00:00 2001 From: bohu Date: Thu, 12 Jan 2017 12:46:46 -0800 Subject: [PATCH] Emulator: remove hardcoded isEmulator() logic in ImageWallpaper Emulator can use host GPU for rendering and supports GLES 2 already. The isEmulator() logic is not only unnecessary but also causes the launcher to have black background. BUG: 33788018 Change-Id: Ib6d942490e8808e202c444f96becec1b75953838 --- .../SystemUI/src/com/android/systemui/ImageWallpaper.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java index a4d78c5250c11..9a4179f4fef50 100644 --- a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java +++ b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java @@ -80,9 +80,7 @@ public class ImageWallpaper extends WallpaperService { //noinspection PointlessBooleanExpression,ConstantConditions if (FIXED_SIZED_SURFACE && USE_OPENGL) { - if (!isEmulator()) { - mIsHwAccelerated = ActivityManager.isHighEndGfx(); - } + mIsHwAccelerated = ActivityManager.isHighEndGfx(); } } @@ -93,10 +91,6 @@ public class ImageWallpaper extends WallpaperService { } } - private static boolean isEmulator() { - return "1".equals(SystemProperties.get(PROPERTY_KERNEL_QEMU, "0")); - } - @Override public Engine onCreateEngine() { mEngine = new DrawableEngine();