OLD | NEW |
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 Loading... |
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 |
OLD | NEW |