Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd131815 authored by Luis Hector Chavez's avatar Luis Hector Chavez Committed by android-build-merger
Browse files

Merge "Also allow avoiding gfx acceleration at runtime" into pi-dev

am: 744e6f17

Change-Id: I3e691bac969b76ebfdd9ee3e3e3956fb53e64548
parents b038415e 744e6f17
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -959,8 +959,10 @@ public class ActivityManager {
     * @hide
     */
    static public boolean isHighEndGfx() {
        return !isLowRamDeviceStatic() &&
                !Resources.getSystem().getBoolean(com.android.internal.R.bool.config_avoidGfxAccel);
        return !isLowRamDeviceStatic()
                && !RoSystemProperties.CONFIG_AVOID_GFX_ACCEL
                && !Resources.getSystem()
                        .getBoolean(com.android.internal.R.bool.config_avoidGfxAccel);
    }

    /**
+2 −0
Original line number Diff line number Diff line
@@ -31,6 +31,8 @@ public class RoSystemProperties {
            SystemProperties.get("ro.control_privapp_permissions");

    // ------ ro.config.* -------- //
    public static final boolean CONFIG_AVOID_GFX_ACCEL =
            SystemProperties.getBoolean("ro.config.avoid_gfx_accel", false);
    public static final boolean CONFIG_LOW_RAM =
            SystemProperties.getBoolean("ro.config.low_ram", false);
    public static final boolean CONFIG_SMALL_BATTERY =