Move RenderProcessHostImpl::GetActiveViewCount to RenderProcessHost, remove mock.
[chromium-blink-merge.git] / cc / base / switches.cc
blobc3fad972b8fab2ed0afa1d90a094d897065d7efb
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.
5 #include "cc/base/switches.h"
7 #include "base/command_line.h"
9 namespace cc {
10 namespace switches {
12 const char kDisableThreadedAnimation[] = "disable-threaded-animation";
14 // Disables layer-edge anti-aliasing in the compositor.
15 const char kDisableCompositedAntialiasing[] =
16 "disable-composited-antialiasing";
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";
23 // Enables sending the next BeginMainFrame before the previous commit activates.
24 const char kEnableMainFrameBeforeActivation[] =
25 "enable-main-frame-before-activation";
27 const char kEnableTopControlsPositionCalculation[] =
28 "enable-top-controls-position-calculation";
30 // Percentage of the top controls need to be hidden before they will auto hide.
31 const char kTopControlsHideThreshold[] = "top-controls-hide-threshold";
33 // Percentage of the top controls need to be shown before they will auto show.
34 const char kTopControlsShowThreshold[] = "top-controls-show-threshold";
36 // Re-rasters everything multiple times to simulate a much slower machine.
37 // Give a scale factor to cause raster to take that many times longer to
38 // complete, such as --slow-down-raster-scale-factor=25.
39 const char kSlowDownRasterScaleFactor[] = "slow-down-raster-scale-factor";
41 // Max tiles allowed for each tilings interest area.
42 const char kMaxTilesForInterestArea[] = "max-tiles-for-interest-area";
44 // The amount of unused resource memory compositor is allowed to keep around.
45 const char kMaxUnusedResourceMemoryUsagePercentage[] =
46 "max-unused-resource-memory-usage-percentage";
48 // Causes the compositor to render to textures which are then sent to the parent
49 // through the texture mailbox mechanism.
50 // Requires --enable-compositor-frame-message.
51 const char kCompositeToMailbox[] = "composite-to-mailbox";
53 // Check that property changes during paint do not occur.
54 const char kStrictLayerPropertyChangeChecking[] =
55 "strict-layer-property-change-checking";
57 // Virtual viewport for fixed-position elements, scrollbars during pinch.
58 const char kEnablePinchVirtualViewport[] = "enable-pinch-virtual-viewport";
59 const char kDisablePinchVirtualViewport[] = "disable-pinch-virtual-viewport";
61 // Disable partial swap which is needed for some OpenGL drivers / emulators.
62 const char kUIDisablePartialSwap[] = "ui-disable-partial-swap";
64 // Enables the GPU benchmarking extension
65 const char kEnableGpuBenchmarking[] = "enable-gpu-benchmarking";
67 // Renders a border around compositor layers to help debug and study
68 // layer compositing.
69 const char kShowCompositedLayerBorders[] = "show-composited-layer-borders";
70 const char kUIShowCompositedLayerBorders[] = "ui-show-layer-borders";
72 // 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
74 // the console log.
75 const char kShowFPSCounter[] = "show-fps-counter";
76 const char kUIShowFPSCounter[] = "ui-show-fps-counter";
78 // Renders a border that represents the bounding box for the layer's animation.
79 const char kShowLayerAnimationBounds[] = "show-layer-animation-bounds";
80 const char kUIShowLayerAnimationBounds[] = "ui-show-layer-animation-bounds";
82 // Show rects in the HUD around layers whose properties have changed.
83 const char kShowPropertyChangedRects[] = "show-property-changed-rects";
84 const char kUIShowPropertyChangedRects[] = "ui-show-property-changed-rects";
86 // Show rects in the HUD around damage as it is recorded into each render
87 // surface.
88 const char kShowSurfaceDamageRects[] = "show-surface-damage-rects";
89 const char kUIShowSurfaceDamageRects[] = "ui-show-surface-damage-rects";
91 // Show rects in the HUD around the screen-space transformed bounds of every
92 // layer.
93 const char kShowScreenSpaceRects[] = "show-screenspace-rects";
94 const char kUIShowScreenSpaceRects[] = "ui-show-screenspace-rects";
96 // Show rects in the HUD around the screen-space transformed bounds of every
97 // layer's replica, when they have one.
98 const char kShowReplicaScreenSpaceRects[] = "show-replica-screenspace-rects";
99 const char kUIShowReplicaScreenSpaceRects[] =
100 "ui-show-replica-screenspace-rects";
102 // Prevents the layer tree unit tests from timing out.
103 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout";
105 // Makes pixel tests write their output instead of read it.
106 const char kCCRebaselinePixeltests[] = "cc-rebaseline-pixeltests";
108 } // namespace switches
109 } // namespace cc