Introduce GpuViewUpdatesPreferenceController

- Create new GpuViewUpdatesPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller
 - Fix a typo in preference naming

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: Ieff20634238900137acc1524edb6fd0d4bfce894
This commit is contained in:
jeffreyhuang
2017-09-28 15:02:13 -07:00
parent 5ae503b383
commit a02a9886c0
5 changed files with 208 additions and 3 deletions

View File

@@ -146,7 +146,7 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
private static final String FORCE_MSAA_KEY = "force_msaa";
private static final String TRACK_FRAME_TIME_KEY = "track_frame_time";
private static final String SHOW_NON_RECTANGULAR_CLIP_KEY = "show_non_rect_clip";
private static final String SHOW_HW_SCREEN_UPDATES_KEY = "show_hw_screen_udpates";
private static final String SHOW_HW_SCREEN_UPDATES_KEY = "show_hw_screen_updates";
private static final String SHOW_HW_LAYERS_UPDATES_KEY = "show_hw_layers_updates";
private static final String DEBUG_HW_OVERDRAW_KEY = "debug_hw_overdraw";
private static final String DEBUG_HW_RENDERER_KEY = "debug_hw_renderer";