Introduce ForceGpuRenderingPreferenceController

- Create new ForceGpuRenderingPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: Ib3afb9278257f0c2b181e15f28650d9620538c17
This commit is contained in:
jeffreyhuang
2017-09-28 14:16:02 -07:00
parent ae6c29d10f
commit e289ec4041
3 changed files with 209 additions and 1 deletions

View File

@@ -287,7 +287,7 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
// animator duration scale
// simulate secondary displays
// smallest width
// force gpu rendering
controllers.add(new ForceGpuRenderingPreferenceController(context));
// show gpu view updates
// show hardware layers updates
// debug gpu overdraw