| 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 // Do not predict whether the tile will be either solid color or transparent. | |
| 20 const char kDisableColorEstimator[] = "disable-color-estimator"; | |
| 21 | |
| 22 // Paint content on the main thread instead of the compositor thread. | 19 // Paint content on the main thread instead of the compositor thread. |
| 23 // Overrides the kEnableImplSidePainting flag. | 20 // Overrides the kEnableImplSidePainting flag. |
| 24 const char kDisableImplSidePainting[] = "disable-impl-side-painting"; | 21 const char kDisableImplSidePainting[] = "disable-impl-side-painting"; |
| 25 | 22 |
| 26 // Paint content on the compositor thread instead of the main thread. | 23 // Paint content on the compositor thread instead of the main thread. |
| 27 const char kEnableImplSidePainting[] = "enable-impl-side-painting"; | 24 const char kEnableImplSidePainting[] = "enable-impl-side-painting"; |
| 28 | 25 |
| 29 const char kEnableTopControlsPositionCalculation[] = | 26 const char kEnableTopControlsPositionCalculation[] = |
| 30 "enable-top-controls-position-calculation"; | 27 "enable-top-controls-position-calculation"; |
| 31 | 28 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 141 |
| 145 #if defined(OS_ANDROID) | 142 #if defined(OS_ANDROID) |
| 146 return true; | 143 return true; |
| 147 #else | 144 #else |
| 148 return false; | 145 return false; |
| 149 #endif | 146 #endif |
| 150 } | 147 } |
| 151 | 148 |
| 152 } // namespace switches | 149 } // namespace switches |
| 153 } // namespace cc | 150 } // namespace cc |
| OLD | NEW |