Merge "Emulator: remove hardcoded isEmulator() logic in ImageWallpaper"

This commit is contained in:
Bo Hu
2017-01-13 02:16:21 +00:00
committed by Android (Google) Code Review

View File

@@ -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();