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

Commit b058affe authored by Ian Elliott's avatar Ian Elliott Committed by Courtney Goeltzenleuchter
Browse files

Added/refined log messages for ANGLE usage/settings.

There are now log messages for whether or not we're using ANGLE, and
if so, which backend Vulkan and Skia are using.

Test: Run an application and look at logcat output
Change-Id: I6f97b1b6786ec7d6a2f7ce14c61b108b0b711a11
(cherry picked from commit 7bf58d89966fba02f39062d273faba25f4af42b0)
parent d41ef257
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -482,6 +482,7 @@ static void* load_angle(const char* kind, egl_connection_t* cnx) {

    void* so = nullptr;
    std::string name;
    char prop[PROPERTY_VALUE_MAX];

    android_namespace_t* ns = android_getAngleNamespace();
    const char* app_name = android_getAngleAppName();
@@ -496,13 +497,21 @@ static void* load_angle(const char* kind, egl_connection_t* cnx) {
    }

    if (so) {
        ALOGD("Loaded ANGLE libraries for %s", app_name ? app_name : "nullptr");
        ALOGD("Loaded ANGLE %s library for %s (instead of native)",
              kind, app_name ? app_name : "nullptr");
        property_get("debug.angle.backend", prop, "UNSET");
        ALOGD("ANGLE's backend set to %s", prop);
        property_get("debug.hwui.renderer", prop, "UNSET");
        ALOGD("Skia's renderer set to %s", prop);
        cnx->useAngle = true;
        // Find and load vendor libEGL for ANGLE
        if (!cnx->vendorEGL) {
            cnx->vendorEGL = load_system_driver("EGL");
        }
        return so;
    } else {
        ALOGD("Loaded native %s library for %s (instead of ANGLE)",
              kind, app_name ? app_name : "nullptr");
    }

    return nullptr;