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

Commit 1846187a authored by Cody Northrop's avatar Cody Northrop Committed by Courtney Goeltzenleuchter
Browse files

Add ANGLE enable to Developer Options

Allows selecting a single app to use ANGLE instead
of native drivers via Developer Options. Only non-system
apps will be listed via this interface.

Bug: 80239516
Test: Manual
Change-Id: I449030a70df1ba12479f35c481ec785b3b75b11c
(cherry picked from commit 2e368d1581c9deeae4c02b5b51f4ee11da90c746)
parent 73c05042
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -397,6 +397,9 @@ message GlobalSettingsProto {
        // Ordered GPU debug layer list
        // i.e. <layer1>:<layer2>:...:<layerN>
        optional SettingProto debug_layers = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];

        // App will load ANGLE instead of native GLES drivers.
        optional SettingProto angle_enabled_app = 3;
    }
    optional Gpu gpu = 59;

+3 −0
Original line number Diff line number Diff line
@@ -659,6 +659,9 @@ class SettingsProtoDumpUtil {
        dumpSetting(s, p,
                Settings.Global.GPU_DEBUG_LAYERS,
                GlobalSettingsProto.Gpu.DEBUG_LAYERS);
        dumpSetting(s, p,
                Settings.Global.ANGLE_ENABLED_APP,
                GlobalSettingsProto.Gpu.ANGLE_ENABLED_APP);
        p.end(gpuToken);

        final long hdmiToken = p.start(GlobalSettingsProto.HDMI);