| 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_BASE_SWITCHES_H_ | 7 #ifndef CC_BASE_SWITCHES_H_ |
| 8 #define CC_BASE_SWITCHES_H_ | 8 #define CC_BASE_SWITCHES_H_ |
| 9 | 9 |
| 10 #include "build/build_config.h" |
| 10 #include "cc/base/cc_export.h" | 11 #include "cc/base/cc_export.h" |
| 11 | 12 |
| 12 // Since cc is used from the render process, anything that goes here also needs | 13 // Since cc is used from the render process, anything that goes here also needs |
| 13 // to be added to render_process_host_impl.cc. | 14 // to be added to render_process_host_impl.cc. |
| 14 | 15 |
| 15 namespace cc { | 16 #ifdef ENABLE_FAST_COMMAND_LINE_SWITCHES |
| 17 |
| 18 namespace { |
| 19 #include "cc/base/switches.cc" |
| 20 } |
| 21 |
| 22 #else |
| 23 |
| 16 namespace switches { | 24 namespace switches { |
| 17 | 25 |
| 18 // Switches for the renderer compositor only. | 26 // Switches for the renderer compositor only. |
| 19 CC_EXPORT extern const char kBackgroundColorInsteadOfCheckerboard[]; | 27 CC_EXPORT extern const char kBackgroundColorInsteadOfCheckerboard[]; |
| 20 CC_EXPORT extern const char kDisableImplSidePainting[]; | 28 CC_EXPORT extern const char kDisableImplSidePainting[]; |
| 21 CC_EXPORT extern const char kDisableThreadedAnimation[]; | 29 CC_EXPORT extern const char kDisableThreadedAnimation[]; |
| 22 CC_EXPORT extern const char kEnableImplSidePainting[]; | 30 CC_EXPORT extern const char kEnableImplSidePainting[]; |
| 23 CC_EXPORT extern const char kEnableTopControlsPositionCalculation[]; | 31 CC_EXPORT extern const char kEnableTopControlsPositionCalculation[]; |
| 24 CC_EXPORT extern const char kForceDirectLayerDrawing[]; | 32 CC_EXPORT extern const char kForceDirectLayerDrawing[]; |
| 25 CC_EXPORT extern const char kJankInsteadOfCheckerboard[]; | 33 CC_EXPORT extern const char kJankInsteadOfCheckerboard[]; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 CC_EXPORT extern const char kShowReplicaScreenSpaceRects[]; | 65 CC_EXPORT extern const char kShowReplicaScreenSpaceRects[]; |
| 58 CC_EXPORT extern const char kUIShowReplicaScreenSpaceRects[]; | 66 CC_EXPORT extern const char kUIShowReplicaScreenSpaceRects[]; |
| 59 CC_EXPORT extern const char kShowOccludingRects[]; | 67 CC_EXPORT extern const char kShowOccludingRects[]; |
| 60 CC_EXPORT extern const char kUIShowOccludingRects[]; | 68 CC_EXPORT extern const char kUIShowOccludingRects[]; |
| 61 CC_EXPORT extern const char kShowNonOccludingRects[]; | 69 CC_EXPORT extern const char kShowNonOccludingRects[]; |
| 62 CC_EXPORT extern const char kUIShowNonOccludingRects[]; | 70 CC_EXPORT extern const char kUIShowNonOccludingRects[]; |
| 63 | 71 |
| 64 // Unit test related. | 72 // Unit test related. |
| 65 CC_EXPORT extern const char kCCLayerTreeTestNoTimeout[]; | 73 CC_EXPORT extern const char kCCLayerTreeTestNoTimeout[]; |
| 66 | 74 |
| 67 CC_EXPORT bool IsImplSidePaintingEnabled(); | 75 } // namespace switches |
| 68 | 76 |
| 69 } // namespace switches | 77 #endif // ENABLE_FAST_COMMAND_LINE_SWITCHES |
| 70 } // namespace cc | |
| 71 | |
| 72 #endif // CC_BASE_SWITCHES_H_ | 78 #endif // CC_BASE_SWITCHES_H_ |
| OLD | NEW |