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
Loading
Please register or sign in to comment