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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 const char kUIDisablePartialSwap[] = "ui-disable-partial-swap"; | 65 const char kUIDisablePartialSwap[] = "ui-disable-partial-swap"; |
66 | 66 |
67 // Enables the GPU benchmarking extension | 67 // Enables the GPU benchmarking extension |
68 const char kEnableGpuBenchmarking[] = "enable-gpu-benchmarking"; | 68 const char kEnableGpuBenchmarking[] = "enable-gpu-benchmarking"; |
69 | 69 |
70 // Renders a border around compositor layers to help debug and study | 70 // Renders a border around compositor layers to help debug and study |
71 // layer compositing. | 71 // layer compositing. |
72 const char kShowCompositedLayerBorders[] = "show-composited-layer-borders"; | 72 const char kShowCompositedLayerBorders[] = "show-composited-layer-borders"; |
73 const char kUIShowCompositedLayerBorders[] = "ui-show-layer-borders"; | 73 const char kUIShowCompositedLayerBorders[] = "ui-show-layer-borders"; |
74 | 74 |
75 // Draws a FPS indicator | 75 // Draws a heads-up-display showing Frames Per Second as well as GPU memory |
| 76 // usage. If you also use --vmodule="head*=1" then FPS will also be output to |
| 77 // the console log. |
76 const char kShowFPSCounter[] = "show-fps-counter"; | 78 const char kShowFPSCounter[] = "show-fps-counter"; |
77 const char kUIShowFPSCounter[] = "ui-show-fps-counter"; | 79 const char kUIShowFPSCounter[] = "ui-show-fps-counter"; |
78 | 80 |
79 // Renders a border that represents the bounding box for the layer's animation. | 81 // Renders a border that represents the bounding box for the layer's animation. |
80 const char kShowLayerAnimationBounds[] = "show-layer-animation-bounds"; | 82 const char kShowLayerAnimationBounds[] = "show-layer-animation-bounds"; |
81 const char kUIShowLayerAnimationBounds[] = "ui-show-layer-animation-bounds"; | 83 const char kUIShowLayerAnimationBounds[] = "ui-show-layer-animation-bounds"; |
82 | 84 |
83 // Show rects in the HUD around layers whose properties have changed. | 85 // Show rects in the HUD around layers whose properties have changed. |
84 const char kShowPropertyChangedRects[] = "show-property-changed-rects"; | 86 const char kShowPropertyChangedRects[] = "show-property-changed-rects"; |
85 const char kUIShowPropertyChangedRects[] = "ui-show-property-changed-rects"; | 87 const char kUIShowPropertyChangedRects[] = "ui-show-property-changed-rects"; |
(...skipping 25 matching lines...) Expand all Loading... |
111 const char kUIShowNonOccludingRects[] = "ui-show-nonoccluding-rects"; | 113 const char kUIShowNonOccludingRects[] = "ui-show-nonoccluding-rects"; |
112 | 114 |
113 // Prevents the layer tree unit tests from timing out. | 115 // Prevents the layer tree unit tests from timing out. |
114 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout"; | 116 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout"; |
115 | 117 |
116 // Makes pixel tests write their output instead of read it. | 118 // Makes pixel tests write their output instead of read it. |
117 const char kCCRebaselinePixeltests[] = "cc-rebaseline-pixeltests"; | 119 const char kCCRebaselinePixeltests[] = "cc-rebaseline-pixeltests"; |
118 | 120 |
119 } // namespace switches | 121 } // namespace switches |
120 } // namespace cc | 122 } // namespace cc |
OLD | NEW |