Skip to content
Permalink
Browse files

allow forcing HighEndGfx mode

people have already started fipping the lomRam prop to enable
transparent status bar, this will enable it with fewer
repercussions

Change-Id: Ied6de65276425fa1e7db0bf9da35f1932a355172
  • Loading branch information...
drewis authored and AndroidMeda committed Dec 1, 2013
1 parent 31e9194 commit 0ec442141eee15e2782194d2a4fba5ea24725b65
Showing with 10 additions and 2 deletions.
  1. +10 −2 core/java/android/app/ActivityManager.java
@@ -458,8 +458,16 @@ public static boolean isLowRamDeviceStatic() {
* @hide
*/
static public boolean isHighEndGfx() {
return !isLowRamDeviceStatic() &&
!Resources.getSystem().getBoolean(com.android.internal.R.bool.config_avoidGfxAccel);
return (!isLowRamDeviceStatic() &&
!Resources.getSystem().getBoolean(com.android.internal.R.bool.config_avoidGfxAccel))
|| isForcedHighEndGfx();
}

/**
* @hide
*/
public static boolean isForcedHighEndGfx() {
return SystemProperties.getBoolean("persist.sys.force_highendgfx", false);
}

/**

0 comments on commit 0ec4421

Please sign in to comment.
You can’t perform that action at this time.