OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "cc/base/switches.h" |
| 6 |
| 7 #include "base/command_line.h" |
| 8 |
| 9 namespace cc { |
| 10 namespace switches { |
| 11 |
| 12 const char kDisableThreadedAnimation[] = "disable-threaded-animation"; |
| 13 |
| 14 // Disables layer-edge anti-aliasing in the compositor. |
| 15 const char kDisableCompositedAntialiasing[] = |
| 16 "disable-composited-antialiasing"; |
| 17 |
| 18 // Disables sending the next BeginMainFrame before the previous commit |
| 19 // activates. Overrides the kEnableMainFrameBeforeActivation flag. |
| 20 const char kDisableMainFrameBeforeActivation[] = |
| 21 "disable-main-frame-before-activation"; |
| 22 |
| 23 // Enables sending the next BeginMainFrame before the previous commit activates. |
| 24 const char kEnableMainFrameBeforeActivation[] = |
| 25 "enable-main-frame-before-activation"; |
| 26 |
| 27 // Percentage of the top controls need to be hidden before they will auto hide. |
| 28 const char kTopControlsHideThreshold[] = "top-controls-hide-threshold"; |
| 29 |
| 30 // Percentage of the top controls need to be shown before they will auto show. |
| 31 const char kTopControlsShowThreshold[] = "top-controls-show-threshold"; |
| 32 |
| 33 // Re-rasters everything multiple times to simulate a much slower machine. |
| 34 // Give a scale factor to cause raster to take that many times longer to |
| 35 // complete, such as --slow-down-raster-scale-factor=25. |
| 36 const char kSlowDownRasterScaleFactor[] = "slow-down-raster-scale-factor"; |
| 37 |
| 38 // Max tiles allowed for each tilings interest area. |
| 39 const char kMaxTilesForInterestArea[] = "max-tiles-for-interest-area"; |
| 40 |
| 41 // The amount of unused resource memory compositor is allowed to keep around. |
| 42 const char kMaxUnusedResourceMemoryUsagePercentage[] = |
| 43 "max-unused-resource-memory-usage-percentage"; |
| 44 |
| 45 // Causes the compositor to render to textures which are then sent to the parent |
| 46 // through the texture mailbox mechanism. |
| 47 // Requires --enable-compositor-frame-message. |
| 48 const char kCompositeToMailbox[] = "composite-to-mailbox"; |
| 49 |
| 50 // Check that property changes during paint do not occur. |
| 51 const char kStrictLayerPropertyChangeChecking[] = |
| 52 "strict-layer-property-change-checking"; |
| 53 |
| 54 // Virtual viewport for fixed-position elements, scrollbars during pinch. |
| 55 const char kEnablePinchVirtualViewport[] = "enable-pinch-virtual-viewport"; |
| 56 const char kDisablePinchVirtualViewport[] = "disable-pinch-virtual-viewport"; |
| 57 |
| 58 // Ensures that the draw properties computed via the property trees match those |
| 59 // computed by CalcDrawProperties. |
| 60 const char kEnablePropertyTreeVerification[] = |
| 61 "enable-property-tree-verification"; |
| 62 |
| 63 // Disable partial swap which is needed for some OpenGL drivers / emulators. |
| 64 const char kUIDisablePartialSwap[] = "ui-disable-partial-swap"; |
| 65 |
| 66 // Enables the GPU benchmarking extension |
| 67 const char kEnableGpuBenchmarking[] = "enable-gpu-benchmarking"; |
| 68 |
| 69 // Renders a border around compositor layers to help debug and study |
| 70 // layer compositing. |
| 71 const char kShowCompositedLayerBorders[] = "show-composited-layer-borders"; |
| 72 const char kUIShowCompositedLayerBorders[] = "ui-show-layer-borders"; |
| 73 |
| 74 // Draws a heads-up-display showing Frames Per Second as well as GPU memory |
| 75 // usage. If you also use --vmodule="head*=1" then FPS will also be output to |
| 76 // the console log. |
| 77 const char kShowFPSCounter[] = "show-fps-counter"; |
| 78 const char kUIShowFPSCounter[] = "ui-show-fps-counter"; |
| 79 |
| 80 // Renders a border that represents the bounding box for the layer's animation. |
| 81 const char kShowLayerAnimationBounds[] = "show-layer-animation-bounds"; |
| 82 const char kUIShowLayerAnimationBounds[] = "ui-show-layer-animation-bounds"; |
| 83 |
| 84 // Show rects in the HUD around layers whose properties have changed. |
| 85 const char kShowPropertyChangedRects[] = "show-property-changed-rects"; |
| 86 const char kUIShowPropertyChangedRects[] = "ui-show-property-changed-rects"; |
| 87 |
| 88 // Show rects in the HUD around damage as it is recorded into each render |
| 89 // surface. |
| 90 const char kShowSurfaceDamageRects[] = "show-surface-damage-rects"; |
| 91 const char kUIShowSurfaceDamageRects[] = "ui-show-surface-damage-rects"; |
| 92 |
| 93 // Show rects in the HUD around the screen-space transformed bounds of every |
| 94 // layer. |
| 95 const char kShowScreenSpaceRects[] = "show-screenspace-rects"; |
| 96 const char kUIShowScreenSpaceRects[] = "ui-show-screenspace-rects"; |
| 97 |
| 98 // Show rects in the HUD around the screen-space transformed bounds of every |
| 99 // layer's replica, when they have one. |
| 100 const char kShowReplicaScreenSpaceRects[] = "show-replica-screenspace-rects"; |
| 101 const char kUIShowReplicaScreenSpaceRects[] = |
| 102 "ui-show-replica-screenspace-rects"; |
| 103 |
| 104 // Prevents the layer tree unit tests from timing out. |
| 105 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout"; |
| 106 |
| 107 // Makes pixel tests write their output instead of read it. |
| 108 const char kCCRebaselinePixeltests[] = "cc-rebaseline-pixeltests"; |
| 109 |
| 110 } // namespace switches |
| 111 } // namespace cc |
OLD | NEW |