Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1030)

Side by Side Diff: chrome/browser/about_flags.cc

Issue 8733008: Added option to enable accelerated drawing to about:flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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",
156 IDS_FLAGS_ACCELERATED_DRAWING_NAME,
157 IDS_FLAGS_ACCELERATED_DRAWING_DESCRIPTION,
158 #if defined(USE_SKIA)
159 kOsAll,
160 #else
161 0,
162 #endif
163 SINGLE_VALUE_TYPE(switches::kEnableAcceleratedDrawing)
164 },
165 {
155 "show-fps-counter", 166 "show-fps-counter",
156 IDS_FLAGS_SHOW_FPS_COUNTER, 167 IDS_FLAGS_SHOW_FPS_COUNTER,
157 IDS_FLAGS_SHOW_FPS_COUNTER_DESCRIPTION, 168 IDS_FLAGS_SHOW_FPS_COUNTER_DESCRIPTION,
158 kOsAll, 169 kOsAll,
159 SINGLE_VALUE_TYPE(switches::kShowFPSCounter) 170 SINGLE_VALUE_TYPE(switches::kShowFPSCounter)
160 }, 171 },
161 { 172 {
162 "disable-gpu-vsync", 173 "disable-gpu-vsync",
163 IDS_FLAGS_DISABLE_GPU_VSYNC_NAME, 174 IDS_FLAGS_DISABLE_GPU_VSYNC_NAME,
164 IDS_FLAGS_DISABLE_GPU_VSYNC_DESCRIPTION, 175 IDS_FLAGS_DISABLE_GPU_VSYNC_DESCRIPTION,
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 } 867 }
857 868
858 const Experiment* GetExperiments(size_t* count) { 869 const Experiment* GetExperiments(size_t* count) {
859 *count = num_experiments; 870 *count = num_experiments;
860 return experiments; 871 return experiments;
861 } 872 }
862 873
863 } // namespace testing 874 } // namespace testing
864 875
865 } // namespace about_flags 876 } // namespace about_flags
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698