Chromium Code Reviews| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 127 // Show rects in the HUD wherever something is known to be drawn opaque and is | 127 // Show rects in the HUD wherever something is known to be drawn opaque and is |
| 128 // considered occluding the pixels behind it. | 128 // considered occluding the pixels behind it. |
| 129 const char kShowOccludingRects[] = "show-occluding-rects"; | 129 const char kShowOccludingRects[] = "show-occluding-rects"; |
| 130 const char kUIShowOccludingRects[] = "ui-show-occluding-rects"; | 130 const char kUIShowOccludingRects[] = "ui-show-occluding-rects"; |
| 131 | 131 |
| 132 // Show rects in the HUD wherever something is not known to be drawn opaque and | 132 // Show rects in the HUD wherever something is not known to be drawn opaque and |
| 133 // is not considered to be occluding the pixels behind it. | 133 // is not considered to be occluding the pixels behind it. |
| 134 const char kShowNonOccludingRects[] = "show-nonoccluding-rects"; | 134 const char kShowNonOccludingRects[] = "show-nonoccluding-rects"; |
| 135 const char kUIShowNonOccludingRects[] = "ui-show-nonoccluding-rects"; | 135 const char kUIShowNonOccludingRects[] = "ui-show-nonoccluding-rects"; |
| 136 | 136 |
| 137 // Use GPU memory buffers within the ResourceProvider. | |
|
reveman
2013/05/20 23:16:01
This is no longer accurate. This is now a tile man
kaanb
2013/05/21 00:52:29
Done.
| |
| 138 const char kUseGpuMemoryBuffers[] = "use-gpu-memory-buffers"; | |
| 139 | |
| 137 // Prevents the layer tree unit tests from timing out. | 140 // Prevents the layer tree unit tests from timing out. |
| 138 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout"; | 141 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout"; |
| 139 | 142 |
| 140 // Trace events get dumped to stderr for debugging purposes. | 143 // Trace events get dumped to stderr for debugging purposes. |
| 141 const char kCCUnittestsTraceEventsToVLOG[] = | 144 const char kCCUnittestsTraceEventsToVLOG[] = |
| 142 "cc-unittests-trace-events-to-vlog"; | 145 "cc-unittests-trace-events-to-vlog"; |
| 143 | 146 |
| 144 bool IsImplSidePaintingEnabled() { | 147 bool IsImplSidePaintingEnabled() { |
| 145 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 148 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| 146 | 149 |
| 147 if (command_line.HasSwitch(cc::switches::kDisableImplSidePainting)) | 150 if (command_line.HasSwitch(cc::switches::kDisableImplSidePainting)) |
| 148 return false; | 151 return false; |
| 149 else if (command_line.HasSwitch(cc::switches::kEnableImplSidePainting)) | 152 else if (command_line.HasSwitch(cc::switches::kEnableImplSidePainting)) |
| 150 return true; | 153 return true; |
| 151 | 154 |
| 152 // Check GOOGLE_TV ahead of OS_ANDROID as they are not orthogonal. | 155 // Check GOOGLE_TV ahead of OS_ANDROID as they are not orthogonal. |
| 153 // TODO(jinsukkim): Remove this once the impl-side javascript-driven painting | 156 // TODO(jinsukkim): Remove this once the impl-side javascript-driven painting |
| 154 // performance issue is addressed. (crbug.com/235347) | 157 // performance issue is addressed. (crbug.com/235347) |
| 155 #if defined(GOOGLE_TV) | 158 #if defined(GOOGLE_TV) |
| 156 return false; | 159 return false; |
| 157 #elif defined(OS_ANDROID) | 160 #elif defined(OS_ANDROID) |
| 158 return true; | 161 return true; |
| 159 #else | 162 #else |
| 160 return false; | 163 return false; |
| 161 #endif | 164 #endif |
| 162 } | 165 } |
| 163 | 166 |
| 164 } // namespace switches | 167 } // namespace switches |
| 165 } // namespace cc | 168 } // namespace cc |
| OLD | NEW |