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

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

Issue 18174006: Allow tracing to console everywhere. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // is not considered to be occluding the pixels behind it. 123 // is not considered to be occluding the pixels behind it.
124 const char kShowNonOccludingRects[] = "show-nonoccluding-rects"; 124 const char kShowNonOccludingRects[] = "show-nonoccluding-rects";
125 const char kUIShowNonOccludingRects[] = "ui-show-nonoccluding-rects"; 125 const char kUIShowNonOccludingRects[] = "ui-show-nonoccluding-rects";
126 126
127 // Enable the codepath that uses images within TileManager. 127 // Enable the codepath that uses images within TileManager.
128 const char kUseMapImage[] = "use-map-image"; 128 const char kUseMapImage[] = "use-map-image";
129 129
130 // Prevents the layer tree unit tests from timing out. 130 // Prevents the layer tree unit tests from timing out.
131 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout"; 131 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout";
132 132
133 // Trace events get dumped to stderr for debugging purposes.
134 const char kCCUnittestsTraceEventsToVLOG[] =
135 "cc-unittests-trace-events-to-vlog";
136
137 bool IsImplSidePaintingEnabled() { 133 bool IsImplSidePaintingEnabled() {
138 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 134 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
139 135
140 if (command_line.HasSwitch(cc::switches::kDisableImplSidePainting)) 136 if (command_line.HasSwitch(cc::switches::kDisableImplSidePainting))
141 return false; 137 return false;
142 else if (command_line.HasSwitch(cc::switches::kEnableImplSidePainting)) 138 else if (command_line.HasSwitch(cc::switches::kEnableImplSidePainting))
143 return true; 139 return true;
144 140
145 #if defined(OS_ANDROID) 141 #if defined(OS_ANDROID)
146 return true; 142 return true;
147 #else 143 #else
148 return false; 144 return false;
149 #endif 145 #endif
150 } 146 }
151 147
152 } // namespace switches 148 } // namespace switches
153 } // namespace cc 149 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698