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

Skip to content
Commit ef7aedfc authored by Tim Van Patten's avatar Tim Van Patten
Browse files

ANGLE: Global.Settings should override GameManagerService

If ANGLE is enabled by the Game Dashboard (GameManagerService), but the
user has specified the native driver should be loaded,
GraphicsEnvironment::shouldUseAngle() will still return 'true' and ANGLE
will be loaded.

This CL updates GraphicsEnvironment::shouldUseAngle() to not return true
if the user has forced the native driver.

This CL also updates GameManagerService to allow config values that only
specify 'useAngle', rather than requiring 'downscaleFactor' also.

Tested with the following adb commands:
1.) Enable ANGLE via DeviceConfig for Angry Birds 2:
    adb shell device_config put game_overlay com.rovio.baba mode=3,downscaleFactor=0.7,useAngle=true
2.) Force the native driver:
    adb shell settings put global angle_gl_driver_selection_pkgs com.rovio.baba
    adb shell settings put global angle_gl_driver_selection_values native

Test: adb commands
Test: atest CtsAngleIntegrationHostTestCases
Bug: b/209519090
Change-Id: Ic1fb867129e0707a38470250d333fcbf486cab76
parent 95172370
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment