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

Commit 3a01442c authored by toastcfh's avatar toastcfh
Browse files

HardwareRenderer.java: ifdef javaz for qcom hardware.

- using com.qc.hardware set to false by default. enable if using  qcom hardware ;x
- ifdef update dirty region feature for current surface

Change-Id: I489d1e7d0d81324fad8db6c24163b50c2118bed9
parent 36337a7b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -28,7 +28,8 @@ public class SystemProperties
    public static final int PROP_NAME_MAX = 31;
    public static final int PROP_VALUE_MAX = 91;

    //QCOM HDMI
    //QCOM
    public static final boolean QCOM_HARDWARE = native_get_boolean("com.qc.hardware", false);
    public static final boolean QCOM_HDMI_OUT = native_get_boolean("com.qc.hdmi_out", false);

    private static native String native_get(String key);
+6 −4
Original line number Diff line number Diff line
@@ -939,10 +939,12 @@ public abstract class HardwareRenderer {
                    fallback(true);
                    return SURFACE_STATE_ERROR;
                } else {
                    if (SystemProperties.QCOM_HARDWARE ) {
                        if (mUpdateDirtyRegions) {
                            enableDirtyRegions();
                            mUpdateDirtyRegions = false;
                        }
                     }
                    return SURFACE_STATE_UPDATED;
                }
            }