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
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user