Introduce DebugGpuOverdrawPreferenceController

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

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: Ibaa2faa79716a0cc769d15f6fe3b868719c0f8a6
This commit is contained in:
jeffreyhuang
2017-10-10 15:47:59 -07:00
parent e2fc925bb3
commit f6cbc875e5
3 changed files with 245 additions and 1 deletions

View File

@@ -304,7 +304,7 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
controllers.add(new ForceGpuRenderingPreferenceController(context));
controllers.add(new GpuViewUpdatesPreferenceController(context));
controllers.add(new HardwareLayersUpdatesPreferenceController(context));
// debug gpu overdraw
controllers.add(new DebugGpuOverdrawPreferenceController(context));
// debug non-rectangular clip operations
controllers.add(new ForceMSAAPreferenceController(context));
controllers.add(new HardwareOverlaysPreferenceController(context));