| 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 "cc/base/cc_export.h" | 10 #include "cc/base/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 // Switches for the renderer compositor only. | 18 // Switches for the renderer compositor only. |
| 19 CC_EXPORT extern const char kDisableLowResTiling[]; |
| 19 CC_EXPORT extern const char kDisableThreadedAnimation[]; | 20 CC_EXPORT extern const char kDisableThreadedAnimation[]; |
| 20 CC_EXPORT extern const char kDisableCompositedAntialiasing[]; | 21 CC_EXPORT extern const char kDisableCompositedAntialiasing[]; |
| 21 CC_EXPORT extern const char kEnableTopControlsPositionCalculation[]; | 22 CC_EXPORT extern const char kEnableTopControlsPositionCalculation[]; |
| 23 CC_EXPORT extern const char kEnableLowResTiling[]; |
| 22 CC_EXPORT extern const char kJankInsteadOfCheckerboard[]; | 24 CC_EXPORT extern const char kJankInsteadOfCheckerboard[]; |
| 23 CC_EXPORT extern const char kTopControlsHeight[]; | 25 CC_EXPORT extern const char kTopControlsHeight[]; |
| 24 CC_EXPORT extern const char kTopControlsHideThreshold[]; | 26 CC_EXPORT extern const char kTopControlsHideThreshold[]; |
| 25 CC_EXPORT extern const char kTraceOverdraw[]; | 27 CC_EXPORT extern const char kTraceOverdraw[]; |
| 26 CC_EXPORT extern const char kTopControlsShowThreshold[]; | 28 CC_EXPORT extern const char kTopControlsShowThreshold[]; |
| 27 CC_EXPORT extern const char kSlowDownRasterScaleFactor[]; | 29 CC_EXPORT extern const char kSlowDownRasterScaleFactor[]; |
| 28 CC_EXPORT extern const char kCompositeToMailbox[]; | 30 CC_EXPORT extern const char kCompositeToMailbox[]; |
| 29 CC_EXPORT extern const char kMaxTilesForInterestArea[]; | 31 CC_EXPORT extern const char kMaxTilesForInterestArea[]; |
| 30 CC_EXPORT extern const char kMaxUnusedResourceMemoryUsagePercentage[]; | 32 CC_EXPORT extern const char kMaxUnusedResourceMemoryUsagePercentage[]; |
| 31 CC_EXPORT extern const char kEnablePinchVirtualViewport[]; | 33 CC_EXPORT extern const char kEnablePinchVirtualViewport[]; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 53 CC_EXPORT extern const char kUIShowReplicaScreenSpaceRects[]; | 55 CC_EXPORT extern const char kUIShowReplicaScreenSpaceRects[]; |
| 54 CC_EXPORT extern const char kShowOccludingRects[]; | 56 CC_EXPORT extern const char kShowOccludingRects[]; |
| 55 CC_EXPORT extern const char kUIShowOccludingRects[]; | 57 CC_EXPORT extern const char kUIShowOccludingRects[]; |
| 56 CC_EXPORT extern const char kShowNonOccludingRects[]; | 58 CC_EXPORT extern const char kShowNonOccludingRects[]; |
| 57 CC_EXPORT extern const char kUIShowNonOccludingRects[]; | 59 CC_EXPORT extern const char kUIShowNonOccludingRects[]; |
| 58 | 60 |
| 59 // Unit test related. | 61 // Unit test related. |
| 60 CC_EXPORT extern const char kCCLayerTreeTestNoTimeout[]; | 62 CC_EXPORT extern const char kCCLayerTreeTestNoTimeout[]; |
| 61 CC_EXPORT extern const char kCCRebaselinePixeltests[]; | 63 CC_EXPORT extern const char kCCRebaselinePixeltests[]; |
| 62 | 64 |
| 65 CC_EXPORT bool IsLowResTilingEnabled(); |
| 66 |
| 63 } // namespace switches | 67 } // namespace switches |
| 64 } // namespace cc | 68 } // namespace cc |
| 65 | 69 |
| 66 #endif // CC_BASE_SWITCHES_H_ | 70 #endif // CC_BASE_SWITCHES_H_ |
| OLD | NEW |