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

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: "Now beautiful" Created 7 years, 8 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // Show rects in the HUD wherever something is known to be drawn opaque and is 134 // Show rects in the HUD wherever something is known to be drawn opaque and is
135 // considered occluding the pixels behind it. 135 // considered occluding the pixels behind it.
136 const char kShowOccludingRects[] = "show-occluding-rects"; 136 const char kShowOccludingRects[] = "show-occluding-rects";
137 const char kUIShowOccludingRects[] = "ui-show-occluding-rects"; 137 const char kUIShowOccludingRects[] = "ui-show-occluding-rects";
138 138
139 // Show rects in the HUD wherever something is not known to be drawn opaque and 139 // Show rects in the HUD wherever something is not known to be drawn opaque and
140 // is not considered to be occluding the pixels behind it. 140 // is not considered to be occluding the pixels behind it.
141 const char kShowNonOccludingRects[] = "show-nonoccluding-rects"; 141 const char kShowNonOccludingRects[] = "show-nonoccluding-rects";
142 const char kUIShowNonOccludingRects[] = "ui-show-nonoccluding-rects"; 142 const char kUIShowNonOccludingRects[] = "ui-show-nonoccluding-rects";
143 143
144 // Trace events get dumped to stderr for debugging purposes.
danakj 2013/04/24 20:07:41 Comment is on the wrong variable. Maybe add one fo
Ian Vollick 2013/04/24 22:57:11 Done.
145 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout";
146 const char kCCUnittestsTraceEventsToStderr[] =
147 "cc-unittests-trace-events-to-stderr";
148
144 bool IsImplSidePaintingEnabled() { 149 bool IsImplSidePaintingEnabled() {
145 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 150 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
146 151
147 if (command_line.HasSwitch(cc::switches::kDisableImplSidePainting)) 152 if (command_line.HasSwitch(cc::switches::kDisableImplSidePainting))
148 return false; 153 return false;
149 else if (command_line.HasSwitch(cc::switches::kEnableImplSidePainting)) 154 else if (command_line.HasSwitch(cc::switches::kEnableImplSidePainting))
150 return true; 155 return true;
151 156
152 #if defined(OS_ANDROID) 157 #if defined(OS_ANDROID)
153 return true; 158 return true;
154 #else 159 #else
155 return false; 160 return false;
156 #endif 161 #endif
157 } 162 }
158 163
159 } // namespace switches 164 } // namespace switches
160 } // namespace cc 165 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698