OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/about_flags.h" | 5 #include "chrome/browser/about_flags.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <iterator> | 8 #include <iterator> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 SINGLE_VALUE_TYPE(switches::kForceCompositingMode) | 145 SINGLE_VALUE_TYPE(switches::kForceCompositingMode) |
146 }, | 146 }, |
147 { | 147 { |
148 "composited-layer-borders", | 148 "composited-layer-borders", |
149 IDS_FLAGS_COMPOSITED_LAYER_BORDERS, | 149 IDS_FLAGS_COMPOSITED_LAYER_BORDERS, |
150 IDS_FLAGS_COMPOSITED_LAYER_BORDERS_DESCRIPTION, | 150 IDS_FLAGS_COMPOSITED_LAYER_BORDERS_DESCRIPTION, |
151 kOsAll, | 151 kOsAll, |
152 SINGLE_VALUE_TYPE(switches::kShowCompositedLayerBorders) | 152 SINGLE_VALUE_TYPE(switches::kShowCompositedLayerBorders) |
153 }, | 153 }, |
154 { | 154 { |
155 "accelerated-drawing", | 155 "accelerated-painting", |
156 IDS_FLAGS_ACCELERATED_DRAWING_NAME, | 156 IDS_FLAGS_ACCELERATED_PAINTING_NAME, |
157 IDS_FLAGS_ACCELERATED_DRAWING_DESCRIPTION, | 157 IDS_FLAGS_ACCELERATED_PAINTING_DESCRIPTION, |
158 #if defined(USE_SKIA) | 158 #if defined(USE_SKIA) |
159 kOsAll, | 159 kOsAll, |
160 #else | 160 #else |
161 0, | 161 0, |
162 #endif | 162 #endif |
163 SINGLE_VALUE_TYPE(switches::kEnableAcceleratedDrawing) | 163 SINGLE_VALUE_TYPE(switches::kEnableAcceleratedPainting) |
164 }, | 164 }, |
165 { | 165 { |
166 "show-fps-counter", | 166 "show-fps-counter", |
167 IDS_FLAGS_SHOW_FPS_COUNTER, | 167 IDS_FLAGS_SHOW_FPS_COUNTER, |
168 IDS_FLAGS_SHOW_FPS_COUNTER_DESCRIPTION, | 168 IDS_FLAGS_SHOW_FPS_COUNTER_DESCRIPTION, |
169 kOsAll, | 169 kOsAll, |
170 SINGLE_VALUE_TYPE(switches::kShowFPSCounter) | 170 SINGLE_VALUE_TYPE(switches::kShowFPSCounter) |
171 }, | 171 }, |
172 { | 172 { |
173 "disable-gpu-vsync", | 173 "disable-gpu-vsync", |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 SINGLE_VALUE_TYPE(switches::kAuraWindows) | 422 SINGLE_VALUE_TYPE(switches::kAuraWindows) |
423 }, | 423 }, |
424 #endif | 424 #endif |
425 { | 425 { |
426 "enable-gamepad", | 426 "enable-gamepad", |
427 IDS_FLAGS_ENABLE_GAMEPAD_NAME, | 427 IDS_FLAGS_ENABLE_GAMEPAD_NAME, |
428 IDS_FLAGS_ENABLE_GAMEPAD_DESCRIPTION, | 428 IDS_FLAGS_ENABLE_GAMEPAD_DESCRIPTION, |
429 kOsMac | kOsWin, | 429 kOsMac | kOsWin, |
430 SINGLE_VALUE_TYPE(switches::kEnableGamepad) | 430 SINGLE_VALUE_TYPE(switches::kEnableGamepad) |
431 }, | 431 }, |
| 432 { |
| 433 "per-tile-painting", |
| 434 IDS_FLAGS_PER_TILE_PAINTING_NAME, |
| 435 IDS_FLAGS_PER_TILE_PAINTING_DESCRIPTION, |
| 436 #if defined(USE_SKIA) |
| 437 kOsAll, |
| 438 #else |
| 439 0, |
| 440 #endif |
| 441 SINGLE_VALUE_TYPE(switches::kEnablePerTilePainting) |
| 442 }, |
432 }; | 443 }; |
433 | 444 |
434 const Experiment* experiments = kExperiments; | 445 const Experiment* experiments = kExperiments; |
435 size_t num_experiments = arraysize(kExperiments); | 446 size_t num_experiments = arraysize(kExperiments); |
436 | 447 |
437 // Stores and encapsulates the little state that about:flags has. | 448 // Stores and encapsulates the little state that about:flags has. |
438 class FlagsState { | 449 class FlagsState { |
439 public: | 450 public: |
440 FlagsState() : needs_restart_(false) {} | 451 FlagsState() : needs_restart_(false) {} |
441 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 452 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 } | 862 } |
852 | 863 |
853 const Experiment* GetExperiments(size_t* count) { | 864 const Experiment* GetExperiments(size_t* count) { |
854 *count = num_experiments; | 865 *count = num_experiments; |
855 return experiments; | 866 return experiments; |
856 } | 867 } |
857 | 868 |
858 } // namespace testing | 869 } // namespace testing |
859 | 870 |
860 } // namespace about_flags | 871 } // namespace about_flags |
OLD | NEW |