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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
57 // Virtual viewport for fixed-position elements, scrollbars during pinch. | 57 // Virtual viewport for fixed-position elements, scrollbars during pinch. |
58 const char kEnablePinchVirtualViewport[] = "enable-pinch-virtual-viewport"; | 58 const char kEnablePinchVirtualViewport[] = "enable-pinch-virtual-viewport"; |
59 const char kDisablePinchVirtualViewport[] = "disable-pinch-virtual-viewport"; | 59 const char kDisablePinchVirtualViewport[] = "disable-pinch-virtual-viewport"; |
60 | 60 |
61 // Disable partial swap which is needed for some OpenGL drivers / emulators. | 61 // Disable partial swap which is needed for some OpenGL drivers / emulators. |
62 const char kUIDisablePartialSwap[] = "ui-disable-partial-swap"; | 62 const char kUIDisablePartialSwap[] = "ui-disable-partial-swap"; |
63 | 63 |
64 // Enables the GPU benchmarking extension | 64 // Enables the GPU benchmarking extension |
65 const char kEnableGpuBenchmarking[] = "enable-gpu-benchmarking"; | 65 const char kEnableGpuBenchmarking[] = "enable-gpu-benchmarking"; |
66 | 66 |
67 // Use a BeginFrame signal from browser to renderer to schedule rendering. | |
68 const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling"; | |
brianderson
2014/12/12 01:17:02
Where is this flag set for Aura? Is it just comman
simonhong
2014/12/15 15:37:27
This feature is only enabled by command line.
Shou
brianderson
2014/12/16 00:06:52
We eventually want to just get rid of this command
simonhong
2014/12/16 15:13:30
Changed to set this in the platform specific defin
| |
69 | |
67 // Renders a border around compositor layers to help debug and study | 70 // Renders a border around compositor layers to help debug and study |
68 // layer compositing. | 71 // layer compositing. |
69 const char kShowCompositedLayerBorders[] = "show-composited-layer-borders"; | 72 const char kShowCompositedLayerBorders[] = "show-composited-layer-borders"; |
70 const char kUIShowCompositedLayerBorders[] = "ui-show-layer-borders"; | 73 const char kUIShowCompositedLayerBorders[] = "ui-show-layer-borders"; |
71 | 74 |
72 // Draws a heads-up-display showing Frames Per Second as well as GPU memory | 75 // Draws a heads-up-display showing Frames Per Second as well as GPU memory |
73 // usage. If you also use --vmodule="head*=1" then FPS will also be output to | 76 // usage. If you also use --vmodule="head*=1" then FPS will also be output to |
74 // the console log. | 77 // the console log. |
75 const char kShowFPSCounter[] = "show-fps-counter"; | 78 const char kShowFPSCounter[] = "show-fps-counter"; |
76 const char kUIShowFPSCounter[] = "ui-show-fps-counter"; | 79 const char kUIShowFPSCounter[] = "ui-show-fps-counter"; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
110 const char kUIShowNonOccludingRects[] = "ui-show-nonoccluding-rects"; | 113 const char kUIShowNonOccludingRects[] = "ui-show-nonoccluding-rects"; |
111 | 114 |
112 // Prevents the layer tree unit tests from timing out. | 115 // Prevents the layer tree unit tests from timing out. |
113 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout"; | 116 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout"; |
114 | 117 |
115 // Makes pixel tests write their output instead of read it. | 118 // Makes pixel tests write their output instead of read it. |
116 const char kCCRebaselinePixeltests[] = "cc-rebaseline-pixeltests"; | 119 const char kCCRebaselinePixeltests[] = "cc-rebaseline-pixeltests"; |
117 | 120 |
118 } // namespace switches | 121 } // namespace switches |
119 } // namespace cc | 122 } // namespace cc |
OLD | NEW |