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

Side by Side Diff: cc/base/switches.cc

Issue 17550008: Make IsSolidColor() a property on CC scrollbar layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Jochen's comments. Created 7 years, 5 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "cc/base/switches.h" 5 #include "cc/base/switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 8
9 namespace cc { 9 namespace cc {
10 namespace switches { 10 namespace switches {
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // Enable the codepath that uses images within TileManager. 124 // Enable the codepath that uses images within TileManager.
125 const char kUseMapImage[] = "use-map-image"; 125 const char kUseMapImage[] = "use-map-image";
126 126
127 // Prevents the layer tree unit tests from timing out. 127 // Prevents the layer tree unit tests from timing out.
128 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout"; 128 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout";
129 129
130 // Trace events get dumped to stderr for debugging purposes. 130 // Trace events get dumped to stderr for debugging purposes.
131 const char kCCUnittestsTraceEventsToVLOG[] = 131 const char kCCUnittestsTraceEventsToVLOG[] =
132 "cc-unittests-trace-events-to-vlog"; 132 "cc-unittests-trace-events-to-vlog";
133 133
134 // Allow forcing of solid-color scrollbars
jamesr 2013/07/03 21:26:24 what does it mean to "allow forcing"? Does the fl
135 const char kForceSolidColorScrollbars[] = "force-solid-color-scrollbars";
136
137 // Solid-color scrollbar color in hex ARGB format, e.g. 0x80808080.
138 // The 0x/0X prefix is optional.
139 const char kSolidColorScrollbarColor[] = "solid-color-scrollbar-color";
140
141 // Solid-color scrollbar thickness in DIP.
142 const char kSolidColorScrollbarThickness[] = "solid-color-scrollbar-thickness";
143
144 bool ForceSolidColorScrollbars() {
jamesr 2013/07/03 21:26:24 the function name looks like it's doing something,
145 return CommandLine::ForCurrentProcess()->HasSwitch(
146 cc::switches::kForceSolidColorScrollbars);
147 }
148
134 bool IsImplSidePaintingEnabled() { 149 bool IsImplSidePaintingEnabled() {
135 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 150 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
136 151
137 if (command_line.HasSwitch(cc::switches::kDisableImplSidePainting)) 152 if (command_line.HasSwitch(cc::switches::kDisableImplSidePainting))
138 return false; 153 return false;
139 else if (command_line.HasSwitch(cc::switches::kEnableImplSidePainting)) 154 else if (command_line.HasSwitch(cc::switches::kEnableImplSidePainting))
140 return true; 155 return true;
141 156
142 #if defined(OS_ANDROID) 157 #if defined(OS_ANDROID)
143 return true; 158 return true;
144 #else 159 #else
145 return false; 160 return false;
146 #endif 161 #endif
147 } 162 }
148 163
149 } // namespace switches 164 } // namespace switches
150 } // namespace cc 165 } // namespace cc
OLDNEW
« no previous file with comments | « cc/base/switches.h ('k') | cc/layers/scrollbar_layer.h » ('j') | cc/layers/scrollbar_layer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698