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 #include "cc/base/switches.h" | 5 #include "cc/base/switches.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 | 8 |
9 namespace cc { | 9 namespace cc { |
10 namespace switches { | 10 namespace switches { |
11 | 11 |
12 // On platforms where checkerboards are used, prefer background colors instead | 12 // On platforms where checkerboards are used, prefer background colors instead |
13 // of checkerboards. | 13 // of checkerboards. |
14 const char kBackgroundColorInsteadOfCheckerboard[] = | 14 const char kBackgroundColorInsteadOfCheckerboard[] = |
15 "background-color-instead-of-checkerboard"; | 15 "background-color-instead-of-checkerboard"; |
16 | 16 |
17 const char kDisableThreadedAnimation[] = "disable-threaded-animation"; | 17 const char kDisableThreadedAnimation[] = "disable-threaded-animation"; |
18 | 18 |
19 // Send a message for every frame from the impl thread to the parent compositor. | 19 // Send a message for every frame from the impl thread to the parent compositor. |
20 const char kEnableCompositorFrameMessage[] = "enable-compositor-frame-message"; | 20 const char kEnableCompositorFrameMessage[] = "enable-compositor-frame-message"; |
21 | 21 |
| 22 // Do not predict whether the tile will be either solid color or transparent. |
| 23 const char kDisableColorEstimator[] = "disable-color-estimator"; |
| 24 |
22 // Paint content on the main thread instead of the compositor thread. | 25 // Paint content on the main thread instead of the compositor thread. |
23 // Overrides the kEnableImplSidePainting flag. | 26 // Overrides the kEnableImplSidePainting flag. |
24 const char kDisableImplSidePainting[] = "disable-impl-side-painting"; | 27 const char kDisableImplSidePainting[] = "disable-impl-side-painting"; |
25 | 28 |
26 // Paint content on the compositor thread instead of the main thread. | 29 // Paint content on the compositor thread instead of the main thread. |
27 const char kEnableImplSidePainting[] = "enable-impl-side-painting"; | 30 const char kEnableImplSidePainting[] = "enable-impl-side-painting"; |
28 | 31 |
29 // Try to finish display pipeline before vsync tick | 32 // Try to finish display pipeline before vsync tick |
30 const char kEnableRightAlignedScheduling[] = "enable-right-aligned-scheduling"; | 33 const char kEnableRightAlignedScheduling[] = "enable-right-aligned-scheduling"; |
31 | 34 |
(...skipping 24 matching lines...) Expand all Loading... |
56 | 59 |
57 // Re-rasters everything multiple times to simulate a much slower machine. | 60 // Re-rasters everything multiple times to simulate a much slower machine. |
58 // Give a scale factor to cause raster to take that many times longer to | 61 // Give a scale factor to cause raster to take that many times longer to |
59 // complete, such as --slow-down-raster-scale-factor=25. | 62 // complete, such as --slow-down-raster-scale-factor=25. |
60 const char kSlowDownRasterScaleFactor[] = "slow-down-raster-scale-factor"; | 63 const char kSlowDownRasterScaleFactor[] = "slow-down-raster-scale-factor"; |
61 | 64 |
62 // Disable scheduling of rasterization jobs according to their estimated | 65 // Disable scheduling of rasterization jobs according to their estimated |
63 // processing cost. | 66 // processing cost. |
64 const char kDisableCheapnessEstimator[] = "disable-cheapness-estimator"; | 67 const char kDisableCheapnessEstimator[] = "disable-cheapness-estimator"; |
65 | 68 |
66 // Predict whether the tile will be either solid color or transparent. | |
67 const char kUseColorEstimator[] = "use-color-estimator"; | |
68 | |
69 // The scale factor for low resolution tile contents. | 69 // The scale factor for low resolution tile contents. |
70 const char kLowResolutionContentsScaleFactor[] = | 70 const char kLowResolutionContentsScaleFactor[] = |
71 "low-resolution-contents-scale-factor"; | 71 "low-resolution-contents-scale-factor"; |
72 | 72 |
73 // Max distance from visible for prepaint tiles. | 73 // Max distance from visible for prepaint tiles. |
74 const char kMaxPrepaintTileDistance[] = "max-prepaint-tile-distance"; | 74 const char kMaxPrepaintTileDistance[] = "max-prepaint-tile-distance"; |
75 | 75 |
76 // Max tiles allowed for each tilings interest area. | 76 // Max tiles allowed for each tilings interest area. |
77 const char kMaxTilesForInterestArea[] = "max-tiles-for-interest-area"; | 77 const char kMaxTilesForInterestArea[] = "max-tiles-for-interest-area"; |
78 | 78 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 145 |
146 #if defined(OS_ANDROID) | 146 #if defined(OS_ANDROID) |
147 return true; | 147 return true; |
148 #else | 148 #else |
149 return false; | 149 return false; |
150 #endif | 150 #endif |
151 } | 151 } |
152 | 152 |
153 } // namespace switches | 153 } // namespace switches |
154 } // namespace cc | 154 } // namespace cc |
OLD | NEW |