people have already started fipping the lomRam prop to enable
transparent status bar, this will enable it with fewer
repercussions
Change-Id: Ied6de65276425fa1e7db0bf9da35f1932a355172
* @hide
*/
static public boolean isHighEndGfx() {
- return !("1".equals(SystemProperties.get("persist.sys.force_sw_gles", "0"))) &&
+ return (!("1".equals(SystemProperties.get("persist.sys.force_sw_gles", "0"))) &&
!isLowRamDeviceStatic() &&
- !Resources.getSystem().getBoolean(com.android.internal.R.bool.config_avoidGfxAccel);
+ !Resources.getSystem().getBoolean(com.android.internal.R.bool.config_avoidGfxAccel))
+ || isForcedHighEndGfx();
+ }
+
+ /**
+ * @hide
+ */
+ public static boolean isForcedHighEndGfx() {
+ return SystemProperties.getBoolean("persist.sys.force_highendgfx", false);
}
/**