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

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

Issue 14474006: Add a command line flag for dumping trace events to VLOG (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // Show rects in the HUD wherever something is known to be drawn opaque and is 130 // Show rects in the HUD wherever something is known to be drawn opaque and is
131 // considered occluding the pixels behind it. 131 // considered occluding the pixels behind it.
132 const char kShowOccludingRects[] = "show-occluding-rects"; 132 const char kShowOccludingRects[] = "show-occluding-rects";
133 const char kUIShowOccludingRects[] = "ui-show-occluding-rects"; 133 const char kUIShowOccludingRects[] = "ui-show-occluding-rects";
134 134
135 // Show rects in the HUD wherever something is not known to be drawn opaque and 135 // Show rects in the HUD wherever something is not known to be drawn opaque and
136 // is not considered to be occluding the pixels behind it. 136 // is not considered to be occluding the pixels behind it.
137 const char kShowNonOccludingRects[] = "show-nonoccluding-rects"; 137 const char kShowNonOccludingRects[] = "show-nonoccluding-rects";
138 const char kUIShowNonOccludingRects[] = "ui-show-nonoccluding-rects"; 138 const char kUIShowNonOccludingRects[] = "ui-show-nonoccluding-rects";
139 139
140 // Prevents the layer tree unit tests from timing out.
141 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout";
142
143 // Trace events get dumped to stderr for debugging purposes.
144 const char kCCUnittestsTraceEventsToVLOG[] =
145 "cc-unittests-trace-events-to-vlog";
146
140 bool IsImplSidePaintingEnabled() { 147 bool IsImplSidePaintingEnabled() {
141 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 148 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
142 149
143 if (command_line.HasSwitch(cc::switches::kDisableImplSidePainting)) 150 if (command_line.HasSwitch(cc::switches::kDisableImplSidePainting))
144 return false; 151 return false;
145 else if (command_line.HasSwitch(cc::switches::kEnableImplSidePainting)) 152 else if (command_line.HasSwitch(cc::switches::kEnableImplSidePainting))
146 return true; 153 return true;
147 154
148 #if defined(OS_ANDROID) 155 #if defined(OS_ANDROID)
149 return true; 156 return true;
150 #else 157 #else
151 return false; 158 return false;
152 #endif 159 #endif
153 } 160 }
154 161
155 } // namespace switches 162 } // namespace switches
156 } // namespace cc 163 } // 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