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