User interface of Apps Developer Tool:
[chromium-blink-merge.git] / cc / base / switches.h
blobf87eb53ee1696890c074d5c13d31cfd90f2b3717
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 kBackgroundColorInsteadOfCheckerboard[];
20 CC_EXPORT extern const char kDisableImplSidePainting[];
21 CC_EXPORT extern const char kDisableThreadedAnimation[];
22 CC_EXPORT extern const char kDisableCompositedAntialiasing[];
23 CC_EXPORT extern const char kEnableImplSidePainting[];
24 CC_EXPORT extern const char kEnableTopControlsPositionCalculation[];
25 CC_EXPORT extern const char kForceDirectLayerDrawing[];
26 CC_EXPORT extern const char kJankInsteadOfCheckerboard[];
27 CC_EXPORT extern const char kNumRasterThreads[];
28 CC_EXPORT extern const char kTopControlsHeight[];
29 CC_EXPORT extern const char kTopControlsHideThreshold[];
30 CC_EXPORT extern const char kTraceOverdraw[];
31 CC_EXPORT extern const char kTopControlsShowThreshold[];
32 CC_EXPORT extern const char kSlowDownRasterScaleFactor[];
33 CC_EXPORT extern const char kLowResolutionContentsScaleFactor[];
34 CC_EXPORT extern const char kCompositeToMailbox[];
35 CC_EXPORT extern const char kMaxTilesForInterestArea[];
36 CC_EXPORT extern const char kMaxUnusedResourceMemoryUsagePercentage[];
37 CC_EXPORT extern const char kEnablePinchVirtualViewport[];
38 CC_EXPORT extern const char kEnablePartialSwap[];
39 CC_EXPORT extern const char kStrictLayerPropertyChangeChecking[];
40 CC_EXPORT extern const char kUseMapImage[];
42 // Switches for both the renderer and ui compositors.
43 CC_EXPORT extern const char kUIDisablePartialSwap[];
44 CC_EXPORT extern const char kEnablePerTilePainting[];
45 CC_EXPORT extern const char kUIEnablePerTilePainting[];
47 // Debug visualizations.
48 CC_EXPORT extern const char kShowCompositedLayerBorders[];
49 CC_EXPORT extern const char kUIShowCompositedLayerBorders[];
50 CC_EXPORT extern const char kShowFPSCounter[];
51 CC_EXPORT extern const char kUIShowFPSCounter[];
52 CC_EXPORT extern const char kShowPropertyChangedRects[];
53 CC_EXPORT extern const char kUIShowPropertyChangedRects[];
54 CC_EXPORT extern const char kShowSurfaceDamageRects[];
55 CC_EXPORT extern const char kUIShowSurfaceDamageRects[];
56 CC_EXPORT extern const char kShowScreenSpaceRects[];
57 CC_EXPORT extern const char kUIShowScreenSpaceRects[];
58 CC_EXPORT extern const char kShowReplicaScreenSpaceRects[];
59 CC_EXPORT extern const char kUIShowReplicaScreenSpaceRects[];
60 CC_EXPORT extern const char kShowOccludingRects[];
61 CC_EXPORT extern const char kUIShowOccludingRects[];
62 CC_EXPORT extern const char kShowNonOccludingRects[];
63 CC_EXPORT extern const char kUIShowNonOccludingRects[];
65 // Unit test related.
66 CC_EXPORT extern const char kCCLayerTreeTestNoTimeout[];
68 CC_EXPORT bool IsImplSidePaintingEnabled();
70 } // namespace switches
71 } // namespace cc
73 #endif // CC_BASE_SWITCHES_H_