| 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 20 matching lines...) Expand all Loading... |
| 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 // Enable solid tile color and transparent tile metrics. | 38 // Enable solid tile color and transparent tile metrics. |
| 39 const char kEnablePredictionBenchmarking[] = "enable-prediction-benchmarking"; | 39 const char kEnablePredictionBenchmarking[] = "enable-prediction-benchmarking"; |
| 40 | 40 |
| 41 // For any layers that can get drawn directly to screen, draw them with Ganesh. |
| 42 // Only valid with gl rendering / threaded compositing / impl-side painting. |
| 43 const char kForceDirectLayerDrawing[] = "force-direct-layer-drawing"; |
| 44 |
| 41 // The height of the movable top controls. | 45 // The height of the movable top controls. |
| 42 const char kTopControlsHeight[] = "top-controls-height"; | 46 const char kTopControlsHeight[] = "top-controls-height"; |
| 43 | 47 |
| 44 // Percentage of the top controls need to be hidden before they will auto hide. | 48 // Percentage of the top controls need to be hidden before they will auto hide. |
| 45 const char kTopControlsHideThreshold[] = "top-controls-hide-threshold"; | 49 const char kTopControlsHideThreshold[] = "top-controls-hide-threshold"; |
| 46 | 50 |
| 47 // Percentage of the top controls need to be shown before they will auto show. | 51 // Percentage of the top controls need to be shown before they will auto show. |
| 48 const char kTopControlsShowThreshold[] = "top-controls-show-threshold"; | 52 const char kTopControlsShowThreshold[] = "top-controls-show-threshold"; |
| 49 | 53 |
| 50 // Number of worker threads used to rasterize content. | 54 // Number of worker threads used to rasterize content. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 return false; | 163 return false; |
| 160 #elif defined(OS_ANDROID) | 164 #elif defined(OS_ANDROID) |
| 161 return true; | 165 return true; |
| 162 #else | 166 #else |
| 163 return false; | 167 return false; |
| 164 #endif | 168 #endif |
| 165 } | 169 } |
| 166 | 170 |
| 167 } // namespace switches | 171 } // namespace switches |
| 168 } // namespace cc | 172 } // namespace cc |
| OLD | NEW |