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

Commit c35301b5 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add debug property to enable/disable ANGLE"

parents 10d29a70 28b97dcd
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -549,7 +549,14 @@ static void* load_angle(const char* kind, android_namespace_t* ns, egl_connectio
        char model[PROPERTY_VALUE_MAX];
        property_get("ro.product.manufacturer", manufacturer, "UNSET");
        property_get("ro.product.model", model, "UNSET");

        // Check if ANGLE is enabled. Workaround for b/118375731
        // We suspect that loading & unloading a library somehow corrupts
        // the process.
        property_get("debug.angle.enable", prop, "0");
        if (atoi(prop)) {
            so = load_angle_from_namespace("feature_support", ns);
        }
        if (so) {
            ALOGV("Temporarily loaded ANGLE's opt-in/out logic from namespace");
            bool use_version0_API = false;