| 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 17 matching lines...) Expand all Loading... |
| 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 | 32 // Try to finish display pipeline before vsync tick |
| 33 const char kEnableRightAlignedScheduling[] = "enable-right-aligned-scheduling"; | 33 const char kEnableRightAlignedScheduling[] = "enable-right-aligned-scheduling"; |
| 34 | 34 |
| 35 const char kEnableTopControlsPositionCalculation[] = | 35 const char kEnableTopControlsPositionCalculation[] = |
| 36 "enable-top-controls-position-calculation"; | 36 "enable-top-controls-position-calculation"; |
| 37 | 37 |
| 38 // 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 |
| 40 // painting. |
| 41 const char kForceDirectLayerDrawing[] = "force-direct-layer-drawing"; |
| 42 |
| 38 // The height of the movable top controls. | 43 // The height of the movable top controls. |
| 39 const char kTopControlsHeight[] = "top-controls-height"; | 44 const char kTopControlsHeight[] = "top-controls-height"; |
| 40 | 45 |
| 41 // Percentage of the top controls need to be hidden before they will auto hide. | 46 // Percentage of the top controls need to be hidden before they will auto hide. |
| 42 const char kTopControlsHideThreshold[] = "top-controls-hide-threshold"; | 47 const char kTopControlsHideThreshold[] = "top-controls-hide-threshold"; |
| 43 | 48 |
| 44 // Percentage of the top controls need to be shown before they will auto show. | 49 // Percentage of the top controls need to be shown before they will auto show. |
| 45 const char kTopControlsShowThreshold[] = "top-controls-show-threshold"; | 50 const char kTopControlsShowThreshold[] = "top-controls-show-threshold"; |
| 46 | 51 |
| 47 // Number of worker threads used to rasterize content. | 52 // Number of worker threads used to rasterize content. |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 return false; | 158 return false; |
| 154 #elif defined(OS_ANDROID) | 159 #elif defined(OS_ANDROID) |
| 155 return true; | 160 return true; |
| 156 #else | 161 #else |
| 157 return false; | 162 return false; |
| 158 #endif | 163 #endif |
| 159 } | 164 } |
| 160 | 165 |
| 161 } // namespace switches | 166 } // namespace switches |
| 162 } // namespace cc | 167 } // namespace cc |
| OLD | NEW |