* Used by persistent processes to determine if they are running on a
* higher-end device so should be okay using hardware drawing acceleration
* (which tends to consume a lot more RAM).
+ * Alternatively, setting debug.egl.hw=0 disables hardware acceleration.
* @hide
*/
static public boolean isHighEndGfx() {
+ if ("0".equals(SystemProperties.get("debug.egl.hw"))) {
+ return false;
+ }
+
return !isLowRamDeviceStatic() &&
!Resources.getSystem().getBoolean(com.android.internal.R.bool.config_avoidGfxAccel);
}