| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Defines all the "cc" command-line switches. | 5 // Defines all the "cc" command-line switches. |
| 6 | 6 |
| 7 #ifndef CC_SWITCHES_H_ | 7 #ifndef CC_SWITCHES_H_ |
| 8 #define CC_SWITCHES_H_ | 8 #define CC_SWITCHES_H_ |
| 9 | 9 |
| 10 #include "cc/cc_export.h" | 10 #include "cc/cc_export.h" |
| 11 | 11 |
| 12 // Since cc is used from the render process, anything that goes here also needs | 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. | 13 // to be added to render_process_host_impl.cc. |
| 14 | 14 |
| 15 namespace cc { | 15 namespace cc { |
| 16 namespace switches { | 16 namespace switches { |
| 17 | 17 |
| 18 CC_EXPORT extern const char kBackgroundColorInsteadOfCheckerboard[]; | 18 CC_EXPORT extern const char kBackgroundColorInsteadOfCheckerboard[]; |
| 19 CC_EXPORT extern const char kDisableThreadedAnimation[]; | 19 CC_EXPORT extern const char kDisableThreadedAnimation[]; |
| 20 CC_EXPORT extern const char kEnableCompositorFrameMessage[]; | 20 CC_EXPORT extern const char kEnableCompositorFrameMessage[]; |
| 21 CC_EXPORT extern const char kDisableImplSidePainting[]; | 21 CC_EXPORT extern const char kDisableImplSidePainting[]; |
| 22 CC_EXPORT extern const char kEnableImplSidePainting[]; | 22 CC_EXPORT extern const char kEnableImplSidePainting[]; |
| 23 CC_EXPORT extern const char kEnablePartialSwap[]; | 23 CC_EXPORT extern const char kEnablePartialSwap[]; |
| 24 CC_EXPORT extern const char kEnablePerTilePainting[]; | 24 CC_EXPORT extern const char kEnablePerTilePainting[]; |
| 25 CC_EXPORT extern const char kEnablePinchZoomScrollbars[]; |
| 26 CC_EXPORT extern const char kDisablePinchZoomScrollbars[]; |
| 25 CC_EXPORT extern const char kEnablePredictionBenchmarking[]; | 27 CC_EXPORT extern const char kEnablePredictionBenchmarking[]; |
| 26 CC_EXPORT extern const char kEnableRightAlignedScheduling[]; | 28 CC_EXPORT extern const char kEnableRightAlignedScheduling[]; |
| 27 CC_EXPORT extern const char kEnableTopControlsPositionCalculation[]; | 29 CC_EXPORT extern const char kEnableTopControlsPositionCalculation[]; |
| 28 CC_EXPORT extern const char kJankInsteadOfCheckerboard[]; | 30 CC_EXPORT extern const char kJankInsteadOfCheckerboard[]; |
| 29 CC_EXPORT extern const char kNumRasterThreads[]; | 31 CC_EXPORT extern const char kNumRasterThreads[]; |
| 30 CC_EXPORT extern const char kShowPropertyChangedRects[]; | 32 CC_EXPORT extern const char kShowPropertyChangedRects[]; |
| 31 CC_EXPORT extern const char kShowSurfaceDamageRects[]; | 33 CC_EXPORT extern const char kShowSurfaceDamageRects[]; |
| 32 CC_EXPORT extern const char kShowScreenSpaceRects[]; | 34 CC_EXPORT extern const char kShowScreenSpaceRects[]; |
| 33 CC_EXPORT extern const char kShowReplicaScreenSpaceRects[]; | 35 CC_EXPORT extern const char kShowReplicaScreenSpaceRects[]; |
| 34 CC_EXPORT extern const char kShowOccludingRects[]; | 36 CC_EXPORT extern const char kShowOccludingRects[]; |
| 35 CC_EXPORT extern const char kShowNonOccludingRects[]; | 37 CC_EXPORT extern const char kShowNonOccludingRects[]; |
| 36 CC_EXPORT extern const char kTraceOverdraw[]; | 38 CC_EXPORT extern const char kTraceOverdraw[]; |
| 37 CC_EXPORT extern const char kTopControlsHeight[]; | 39 CC_EXPORT extern const char kTopControlsHeight[]; |
| 38 CC_EXPORT extern const char kTopControlsHideThreshold[]; | 40 CC_EXPORT extern const char kTopControlsHideThreshold[]; |
| 39 CC_EXPORT extern const char kTopControlsShowThreshold[]; | 41 CC_EXPORT extern const char kTopControlsShowThreshold[]; |
| 40 CC_EXPORT extern const char kTraceAllRenderedFrames[]; | 42 CC_EXPORT extern const char kTraceAllRenderedFrames[]; |
| 41 CC_EXPORT extern const char kSlowDownRasterScaleFactor[]; | 43 CC_EXPORT extern const char kSlowDownRasterScaleFactor[]; |
| 42 CC_EXPORT extern const char kUseCheapnessEstimator[]; | 44 CC_EXPORT extern const char kUseCheapnessEstimator[]; |
| 43 CC_EXPORT extern const char kUseColorEstimator[]; | 45 CC_EXPORT extern const char kUseColorEstimator[]; |
| 44 CC_EXPORT extern const char kLowResolutionContentsScaleFactor[]; | 46 CC_EXPORT extern const char kLowResolutionContentsScaleFactor[]; |
| 45 CC_EXPORT extern const char kCompositeToMailbox[]; | 47 CC_EXPORT extern const char kCompositeToMailbox[]; |
| 46 | 48 |
| 47 CC_EXPORT bool IsImplSidePaintingEnabled(); | 49 CC_EXPORT bool IsImplSidePaintingEnabled(); |
| 48 | 50 |
| 49 } // namespace switches | 51 } // namespace switches |
| 50 } // namespace cc | 52 } // namespace cc |
| 51 | 53 |
| 52 #endif // CC_SWITCHES_H_ | 54 #endif // CC_SWITCHES_H_ |
| OLD | NEW |