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

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

Issue 6581004: Add command line switches and about:flag to enable FPS indicator and compositor layer tree. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes based on feedback Created 9 years, 9 months 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
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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 SINGLE_VALUE_TYPE(switches::kEnableCrxlessWebApps) 148 SINGLE_VALUE_TYPE(switches::kEnableCrxlessWebApps)
149 }, 149 },
150 { 150 {
151 "composited-layer-borders", 151 "composited-layer-borders",
152 IDS_FLAGS_COMPOSITED_LAYER_BORDERS, 152 IDS_FLAGS_COMPOSITED_LAYER_BORDERS,
153 IDS_FLAGS_COMPOSITED_LAYER_BORDERS_DESCRIPTION, 153 IDS_FLAGS_COMPOSITED_LAYER_BORDERS_DESCRIPTION,
154 kOsAll, 154 kOsAll,
155 SINGLE_VALUE_TYPE(switches::kShowCompositedLayerBorders) 155 SINGLE_VALUE_TYPE(switches::kShowCompositedLayerBorders)
156 }, 156 },
157 { 157 {
158 "show-fps-counter",
159 IDS_FLAGS_SHOW_FPS_COUNTER,
160 IDS_FLAGS_SHOW_FPS_COUNTER_DESCRIPTION,
161 kOsAll,
162 SINGLE_VALUE_TYPE(switches::kShowFPSCounter)
163 },
164 {
158 "gpu-canvas-2d", // FLAGS:RECORD_UMA 165 "gpu-canvas-2d", // FLAGS:RECORD_UMA
159 IDS_FLAGS_ACCELERATED_CANVAS_2D_NAME, 166 IDS_FLAGS_ACCELERATED_CANVAS_2D_NAME,
160 IDS_FLAGS_ACCELERATED_CANVAS_2D_DESCRIPTION, 167 IDS_FLAGS_ACCELERATED_CANVAS_2D_DESCRIPTION,
161 kOsWin | kOsLinux | kOsCrOS, 168 kOsWin | kOsLinux | kOsCrOS,
162 SINGLE_VALUE_TYPE(switches::kEnableAccelerated2dCanvas) 169 SINGLE_VALUE_TYPE(switches::kEnableAccelerated2dCanvas)
163 }, 170 },
164 // FIXME(scheib): Add Flags entry for WebGL, 171 // FIXME(scheib): Add Flags entry for WebGL,
165 // or pull it and the strings in generated_resources.grd by Dec 2010 172 // or pull it and the strings in generated_resources.grd by Dec 2010
166 // { 173 // {
167 // "webgl", 174 // "webgl",
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 } 692 }
686 693
687 const Experiment* GetExperiments(size_t* count) { 694 const Experiment* GetExperiments(size_t* count) {
688 *count = num_experiments; 695 *count = num_experiments;
689 return experiments; 696 return experiments;
690 } 697 }
691 698
692 } // namespace testing 699 } // namespace testing
693 700
694 } // namespace about_flags 701 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698