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.
18 // Switches for the renderer compositor only.
19 CC_EXPORT
extern const char kBackgroundColorInsteadOfCheckerboard
[];
20 CC_EXPORT
extern const char kDisableLCDText
[];
21 CC_EXPORT
extern const char kDisableImplSidePainting
[];
22 CC_EXPORT
extern const char kDisableThreadedAnimation
[];
23 CC_EXPORT
extern const char kDisableCompositedAntialiasing
[];
24 CC_EXPORT
extern const char kEnableLCDText
[];
25 CC_EXPORT
extern const char kEnableImplSidePainting
[];
26 CC_EXPORT
extern const char kEnableTopControlsPositionCalculation
[];
27 CC_EXPORT
extern const char kForceDirectLayerDrawing
[];
28 CC_EXPORT
extern const char kJankInsteadOfCheckerboard
[];
29 CC_EXPORT
extern const char kNumRasterThreads
[];
30 CC_EXPORT
extern const char kTopControlsHeight
[];
31 CC_EXPORT
extern const char kTopControlsHideThreshold
[];
32 CC_EXPORT
extern const char kTraceOverdraw
[];
33 CC_EXPORT
extern const char kTopControlsShowThreshold
[];
34 CC_EXPORT
extern const char kSlowDownRasterScaleFactor
[];
35 CC_EXPORT
extern const char kLowResolutionContentsScaleFactor
[];
36 CC_EXPORT
extern const char kCompositeToMailbox
[];
37 CC_EXPORT
extern const char kMaxTilesForInterestArea
[];
38 CC_EXPORT
extern const char kMaxUnusedResourceMemoryUsagePercentage
[];
39 CC_EXPORT
extern const char kEnablePinchVirtualViewport
[];
40 CC_EXPORT
extern const char kEnablePartialSwap
[];
41 CC_EXPORT
extern const char kStrictLayerPropertyChangeChecking
[];
42 CC_EXPORT
extern const char kEnableMapImage
[];
43 CC_EXPORT
extern const char kDisableMapImage
[];
44 CC_EXPORT
extern const char kDisable4444Textures
[];
46 // Switches for both the renderer and ui compositors.
47 CC_EXPORT
extern const char kUIDisablePartialSwap
[];
48 CC_EXPORT
extern const char kEnablePerTilePainting
[];
49 CC_EXPORT
extern const char kUIEnablePerTilePainting
[];
51 // Debug visualizations.
52 CC_EXPORT
extern const char kShowCompositedLayerBorders
[];
53 CC_EXPORT
extern const char kUIShowCompositedLayerBorders
[];
54 CC_EXPORT
extern const char kShowFPSCounter
[];
55 CC_EXPORT
extern const char kUIShowFPSCounter
[];
56 CC_EXPORT
extern const char kShowPropertyChangedRects
[];
57 CC_EXPORT
extern const char kUIShowPropertyChangedRects
[];
58 CC_EXPORT
extern const char kShowSurfaceDamageRects
[];
59 CC_EXPORT
extern const char kUIShowSurfaceDamageRects
[];
60 CC_EXPORT
extern const char kShowScreenSpaceRects
[];
61 CC_EXPORT
extern const char kUIShowScreenSpaceRects
[];
62 CC_EXPORT
extern const char kShowReplicaScreenSpaceRects
[];
63 CC_EXPORT
extern const char kUIShowReplicaScreenSpaceRects
[];
64 CC_EXPORT
extern const char kShowOccludingRects
[];
65 CC_EXPORT
extern const char kUIShowOccludingRects
[];
66 CC_EXPORT
extern const char kShowNonOccludingRects
[];
67 CC_EXPORT
extern const char kUIShowNonOccludingRects
[];
70 CC_EXPORT
extern const char kCCLayerTreeTestNoTimeout
[];
72 CC_EXPORT
bool IsLCDTextEnabled();
73 CC_EXPORT
bool IsImplSidePaintingEnabled();
74 CC_EXPORT
bool IsMapImageEnabled();
76 } // namespace switches
79 #endif // CC_BASE_SWITCHES_H_