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 { |
(...skipping 11 matching lines...) Expand all Loading... |
22 // Do not predict whether the tile will be either solid color or transparent. | 22 // Do not predict whether the tile will be either solid color or transparent. |
23 const char kDisableColorEstimator[] = "disable-color-estimator"; | 23 const char kDisableColorEstimator[] = "disable-color-estimator"; |
24 | 24 |
25 // Paint content on the main thread instead of the compositor thread. | 25 // Paint content on the main thread instead of the compositor thread. |
26 // Overrides the kEnableImplSidePainting flag. | 26 // Overrides the kEnableImplSidePainting flag. |
27 const char kDisableImplSidePainting[] = "disable-impl-side-painting"; | 27 const char kDisableImplSidePainting[] = "disable-impl-side-painting"; |
28 | 28 |
29 // Paint content on the compositor thread instead of the main thread. | 29 // Paint content on the compositor thread instead of the main thread. |
30 const char kEnableImplSidePainting[] = "enable-impl-side-painting"; | 30 const char kEnableImplSidePainting[] = "enable-impl-side-painting"; |
31 | 31 |
32 // Try to finish display pipeline before vsync tick | |
33 const char kEnableRightAlignedScheduling[] = "enable-right-aligned-scheduling"; | |
34 | |
35 const char kEnableTopControlsPositionCalculation[] = | 32 const char kEnableTopControlsPositionCalculation[] = |
36 "enable-top-controls-position-calculation"; | 33 "enable-top-controls-position-calculation"; |
37 | 34 |
38 // For any layers that can get drawn directly to screen, draw them with the Skia | 35 // For any layers that can get drawn directly to screen, draw them with the Skia |
39 // GPU backend. Only valid with gl rendering + threaded compositing + impl-side | 36 // GPU backend. Only valid with gl rendering + threaded compositing + impl-side |
40 // painting. | 37 // painting. |
41 const char kForceDirectLayerDrawing[] = "force-direct-layer-drawing"; | 38 const char kForceDirectLayerDrawing[] = "force-direct-layer-drawing"; |
42 | 39 |
43 // The height of the movable top controls. | 40 // The height of the movable top controls. |
44 const char kTopControlsHeight[] = "top-controls-height"; | 41 const char kTopControlsHeight[] = "top-controls-height"; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 return false; | 157 return false; |
161 #elif defined(OS_ANDROID) | 158 #elif defined(OS_ANDROID) |
162 return true; | 159 return true; |
163 #else | 160 #else |
164 return false; | 161 return false; |
165 #endif | 162 #endif |
166 } | 163 } |
167 | 164 |
168 } // namespace switches | 165 } // namespace switches |
169 } // namespace cc | 166 } // namespace cc |
OLD | NEW |