| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 // Show rects in the HUD around the screen-space transformed bounds of every | 92 // Show rects in the HUD around the screen-space transformed bounds of every |
| 93 // layer. | 93 // layer. |
| 94 const char kShowScreenSpaceRects[] = "show-screenspace-rects"; | 94 const char kShowScreenSpaceRects[] = "show-screenspace-rects"; |
| 95 const char kUIShowScreenSpaceRects[] = "ui-show-screenspace-rects"; | 95 const char kUIShowScreenSpaceRects[] = "ui-show-screenspace-rects"; |
| 96 | 96 |
| 97 // Switches cc machinery to use layer lists instead of layer trees | 97 // Switches cc machinery to use layer lists instead of layer trees |
| 98 const char kEnableLayerLists[] = "enable-layer-lists"; | 98 const char kEnableLayerLists[] = "enable-layer-lists"; |
| 99 const char kUIEnableLayerLists[] = "ui-enable-layer-lists"; | 99 const char kUIEnableLayerLists[] = "ui-enable-layer-lists"; |
| 100 | 100 |
| 101 // Visualize overdraw by color-coding elements based on if they have other |
| 102 // elements drawn underneath. This is good for showing where the UI might be |
| 103 // doing more rendering work than necessary. The colors are hinting at the |
| 104 // amount of overdraw on your screen for each pixel, as follows: |
| 105 // |
| 106 // True color: No overdraw. |
| 107 // Blue: Overdrawn once. |
| 108 // Green: Overdrawn twice. |
| 109 // Pink: Overdrawn three times. |
| 110 // Red: Overdrawn four or more times. |
| 111 const char kShowOverdrawFeedback[] = "show-overdraw-feedback"; |
| 112 |
| 101 // Prevents the layer tree unit tests from timing out. | 113 // Prevents the layer tree unit tests from timing out. |
| 102 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout"; | 114 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout"; |
| 103 | 115 |
| 104 // Increases timeout for memory checkers. | 116 // Increases timeout for memory checkers. |
| 105 const char kCCLayerTreeTestLongTimeout[] = "cc-layer-tree-test-long-timeout"; | 117 const char kCCLayerTreeTestLongTimeout[] = "cc-layer-tree-test-long-timeout"; |
| 106 | 118 |
| 107 // Makes pixel tests write their output instead of read it. | 119 // Makes pixel tests write their output instead of read it. |
| 108 const char kCCRebaselinePixeltests[] = "cc-rebaseline-pixeltests"; | 120 const char kCCRebaselinePixeltests[] = "cc-rebaseline-pixeltests"; |
| 109 | 121 |
| 110 } // namespace switches | 122 } // namespace switches |
| 111 } // namespace cc | 123 } // namespace cc |
| OLD | NEW |