Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / cc / base / switches.h
blobbe4c1acd40bc93c7c81be316139ea73839e9513c
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 // Defines all the "cc" command-line switches.
7 #ifndef CC_BASE_SWITCHES_H_
8 #define CC_BASE_SWITCHES_H_
10 #include "cc/base/cc_export.h"
12 // Since cc is used from the render process, anything that goes here also needs
13 // to be added to render_process_host_impl.cc.
15 namespace cc {
16 namespace switches {
18 // Switches for the renderer compositor only.
19 CC_EXPORT extern const char kDisableThreadedAnimation[];
20 CC_EXPORT extern const char kDisableCompositedAntialiasing[];
21 CC_EXPORT extern const char kDisableMainFrameBeforeDraw[];
22 CC_EXPORT extern const char kDisableMainFrameBeforeActivation[];
23 CC_EXPORT extern const char kEnableMainFrameBeforeActivation[];
24 CC_EXPORT extern const char kEnableTopControlsPositionCalculation[];
25 CC_EXPORT extern const char kJankInsteadOfCheckerboard[];
26 CC_EXPORT extern const char kTopControlsHeight[];
27 CC_EXPORT extern const char kTopControlsHideThreshold[];
28 CC_EXPORT extern const char kTopControlsShowThreshold[];
29 CC_EXPORT extern const char kSlowDownRasterScaleFactor[];
30 CC_EXPORT extern const char kCompositeToMailbox[];
31 CC_EXPORT extern const char kMaxTilesForInterestArea[];
32 CC_EXPORT extern const char kMaxUnusedResourceMemoryUsagePercentage[];
33 CC_EXPORT extern const char kEnablePinchVirtualViewport[];
34 CC_EXPORT extern const char kDisablePinchVirtualViewport[];
35 CC_EXPORT extern const char kStrictLayerPropertyChangeChecking[];
36 CC_EXPORT extern const char kDisableCompositorTouchHitTesting[];
38 // Switches for both the renderer and ui compositors.
39 CC_EXPORT extern const char kUIDisablePartialSwap[];
40 CC_EXPORT extern const char kEnableGpuBenchmarking[];
42 // Debug visualizations.
43 CC_EXPORT extern const char kShowCompositedLayerBorders[];
44 CC_EXPORT extern const char kUIShowCompositedLayerBorders[];
45 CC_EXPORT extern const char kShowFPSCounter[];
46 CC_EXPORT extern const char kUIShowFPSCounter[];
47 CC_EXPORT extern const char kShowLayerAnimationBounds[];
48 CC_EXPORT extern const char kUIShowLayerAnimationBounds[];
49 CC_EXPORT extern const char kShowPropertyChangedRects[];
50 CC_EXPORT extern const char kUIShowPropertyChangedRects[];
51 CC_EXPORT extern const char kShowSurfaceDamageRects[];
52 CC_EXPORT extern const char kUIShowSurfaceDamageRects[];
53 CC_EXPORT extern const char kShowScreenSpaceRects[];
54 CC_EXPORT extern const char kUIShowScreenSpaceRects[];
55 CC_EXPORT extern const char kShowReplicaScreenSpaceRects[];
56 CC_EXPORT extern const char kUIShowReplicaScreenSpaceRects[];
57 CC_EXPORT extern const char kShowOccludingRects[];
58 CC_EXPORT extern const char kUIShowOccludingRects[];
59 CC_EXPORT extern const char kShowNonOccludingRects[];
60 CC_EXPORT extern const char kUIShowNonOccludingRects[];
62 // Unit test related.
63 CC_EXPORT extern const char kCCLayerTreeTestNoTimeout[];
64 CC_EXPORT extern const char kCCRebaselinePixeltests[];
66 } // namespace switches
67 } // namespace cc
69 #endif // CC_BASE_SWITCHES_H_