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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 SINGLE_VALUE_TYPE(switches::kForceCompositingMode) | 147 SINGLE_VALUE_TYPE(switches::kForceCompositingMode) |
148 }, | 148 }, |
149 { | 149 { |
150 "composited-layer-borders", | 150 "composited-layer-borders", |
151 IDS_FLAGS_COMPOSITED_LAYER_BORDERS, | 151 IDS_FLAGS_COMPOSITED_LAYER_BORDERS, |
152 IDS_FLAGS_COMPOSITED_LAYER_BORDERS_DESCRIPTION, | 152 IDS_FLAGS_COMPOSITED_LAYER_BORDERS_DESCRIPTION, |
153 kOsAll, | 153 kOsAll, |
154 SINGLE_VALUE_TYPE(switches::kShowCompositedLayerBorders) | 154 SINGLE_VALUE_TYPE(switches::kShowCompositedLayerBorders) |
155 }, | 155 }, |
156 { | 156 { |
157 "accelerated-drawing", | 157 "accelerated-painting", |
158 IDS_FLAGS_ACCELERATED_DRAWING_NAME, | 158 IDS_FLAGS_ACCELERATED_PAINTING_NAME, |
159 IDS_FLAGS_ACCELERATED_DRAWING_DESCRIPTION, | 159 IDS_FLAGS_ACCELERATED_PAINTING_DESCRIPTION, |
160 #if defined(USE_SKIA) | 160 #if defined(USE_SKIA) |
161 kOsAll, | 161 kOsAll, |
162 #else | 162 #else |
163 0, | 163 0, |
164 #endif | 164 #endif |
165 SINGLE_VALUE_TYPE(switches::kEnableAcceleratedDrawing) | 165 SINGLE_VALUE_TYPE(switches::kEnableAcceleratedPainting) |
166 }, | 166 }, |
167 { | 167 { |
168 "show-fps-counter", | 168 "show-fps-counter", |
169 IDS_FLAGS_SHOW_FPS_COUNTER, | 169 IDS_FLAGS_SHOW_FPS_COUNTER, |
170 IDS_FLAGS_SHOW_FPS_COUNTER_DESCRIPTION, | 170 IDS_FLAGS_SHOW_FPS_COUNTER_DESCRIPTION, |
171 kOsAll, | 171 kOsAll, |
172 SINGLE_VALUE_TYPE(switches::kShowFPSCounter) | 172 SINGLE_VALUE_TYPE(switches::kShowFPSCounter) |
173 }, | 173 }, |
174 { | 174 { |
175 "disable-gpu-vsync", | 175 "disable-gpu-vsync", |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 // Aura laptop mode performance and feature set match traditional non-Aura | 450 // Aura laptop mode performance and feature set match traditional non-Aura |
451 // builds. | 451 // builds. |
452 { | 452 { |
453 "aura-laptop-mode", | 453 "aura-laptop-mode", |
454 IDS_FLAGS_AURA_LAPTOP_MODE_NAME, | 454 IDS_FLAGS_AURA_LAPTOP_MODE_NAME, |
455 IDS_FLAGS_AURA_LAPTOP_MODE_DESCRIPTION, | 455 IDS_FLAGS_AURA_LAPTOP_MODE_DESCRIPTION, |
456 kOsWin | kOsLinux | kOsCrOS, | 456 kOsWin | kOsLinux | kOsCrOS, |
457 SINGLE_VALUE_TYPE(switches::kAuraLaptopMode) | 457 SINGLE_VALUE_TYPE(switches::kAuraLaptopMode) |
458 }, | 458 }, |
459 #endif | 459 #endif |
| 460 { |
| 461 "per-tile-painting", |
| 462 IDS_FLAGS_PER_TILE_PAINTING_NAME, |
| 463 IDS_FLAGS_PER_TILE_PAINTING_DESCRIPTION, |
| 464 #if defined(USE_SKIA) |
| 465 kOsAll, |
| 466 #else |
| 467 0, |
| 468 #endif |
| 469 SINGLE_VALUE_TYPE(switches::kEnablePerTilePainting) |
| 470 }, |
460 }; | 471 }; |
461 | 472 |
462 const Experiment* experiments = kExperiments; | 473 const Experiment* experiments = kExperiments; |
463 size_t num_experiments = arraysize(kExperiments); | 474 size_t num_experiments = arraysize(kExperiments); |
464 | 475 |
465 // Stores and encapsulates the little state that about:flags has. | 476 // Stores and encapsulates the little state that about:flags has. |
466 class FlagsState { | 477 class FlagsState { |
467 public: | 478 public: |
468 FlagsState() : needs_restart_(false) {} | 479 FlagsState() : needs_restart_(false) {} |
469 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 480 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
879 } | 890 } |
880 | 891 |
881 const Experiment* GetExperiments(size_t* count) { | 892 const Experiment* GetExperiments(size_t* count) { |
882 *count = num_experiments; | 893 *count = num_experiments; |
883 return experiments; | 894 return experiments; |
884 } | 895 } |
885 | 896 |
886 } // namespace testing | 897 } // namespace testing |
887 | 898 |
888 } // namespace about_flags | 899 } // namespace about_flags |
OLD | NEW |