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

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

Issue 8771056: Add a command-line switch --enable-per-tile-painting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: enable-per-tile-painting -> enable-per-tile-drawing 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
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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 kOsWin, 429 kOsWin,
430 SINGLE_VALUE_TYPE(switches::kEnableGamepad) 430 SINGLE_VALUE_TYPE(switches::kEnableGamepad)
431 }, 431 },
432 {
433 "per-tile-drawing",
jamesr 2011/12/08 02:31:14 as I mentioned on the WebKit patch, I believe this
434 IDS_FLAGS_PER_TILE_DRAWING_NAME,
435 IDS_FLAGS_PER_TILE_DRAWING_DESCRIPTION,
436 #if defined(USE_SKIA)
437 kOsAll,
438 #else
439 0,
440 #endif
441 SINGLE_VALUE_TYPE(switches::kEnablePerTileDrawing)
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
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
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/tab_contents/render_view_host_delegate_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698