| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |