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

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
« no previous file with comments | « cc/base/switches.h ('k') | cc/test/cc_test_suite.cc » ('j') | 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) 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // is not considered to be occluding the pixels behind it. 120 // is not considered to be occluding the pixels behind it.
121 const char kShowNonOccludingRects[] = "show-nonoccluding-rects"; 121 const char kShowNonOccludingRects[] = "show-nonoccluding-rects";
122 const char kUIShowNonOccludingRects[] = "ui-show-nonoccluding-rects"; 122 const char kUIShowNonOccludingRects[] = "ui-show-nonoccluding-rects";
123 123
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.
131 const char kCCUnittestsTraceEventsToVLOG[] =
132 "cc-unittests-trace-events-to-vlog";
133
134 bool IsImplSidePaintingEnabled() { 130 bool IsImplSidePaintingEnabled() {
135 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 131 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
136 132
137 if (command_line.HasSwitch(cc::switches::kDisableImplSidePainting)) 133 if (command_line.HasSwitch(cc::switches::kDisableImplSidePainting))
138 return false; 134 return false;
139 else if (command_line.HasSwitch(cc::switches::kEnableImplSidePainting)) 135 else if (command_line.HasSwitch(cc::switches::kEnableImplSidePainting))
140 return true; 136 return true;
141 137
142 #if defined(OS_ANDROID) 138 #if defined(OS_ANDROID)
143 return true; 139 return true;
144 #else 140 #else
145 return false; 141 return false;
146 #endif 142 #endif
147 } 143 }
148 144
149 } // namespace switches 145 } // namespace switches
150 } // namespace cc 146 } // namespace cc
OLDNEW
« no previous file with comments | « cc/base/switches.h ('k') | cc/test/cc_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698