| 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 // Enable solid tile color, transparent tile, and cheapness prediction metrics. | 38 // Enable solid tile color, transparent tile metrics. |
| 39 const char kEnablePredictionBenchmarking[] = "enable-prediction-benchmarking"; | 39 const char kEnablePredictionBenchmarking[] = "enable-prediction-benchmarking"; |
| 40 | 40 |
| 41 // The height of the movable top controls. | 41 // The height of the movable top controls. |
| 42 const char kTopControlsHeight[] = "top-controls-height"; | 42 const char kTopControlsHeight[] = "top-controls-height"; |
| 43 | 43 |
| 44 // Percentage of the top controls need to be hidden before they will auto hide. | 44 // Percentage of the top controls need to be hidden before they will auto hide. |
| 45 const char kTopControlsHideThreshold[] = "top-controls-hide-threshold"; | 45 const char kTopControlsHideThreshold[] = "top-controls-hide-threshold"; |
| 46 | 46 |
| 47 // Percentage of the top controls need to be shown before they will auto show. | 47 // Percentage of the top controls need to be shown before they will auto show. |
| 48 const char kTopControlsShowThreshold[] = "top-controls-show-threshold"; | 48 const char kTopControlsShowThreshold[] = "top-controls-show-threshold"; |
| 49 | 49 |
| 50 // Number of worker threads used to rasterize content. | 50 // Number of worker threads used to rasterize content. |
| 51 const char kNumRasterThreads[] = "num-raster-threads"; | 51 const char kNumRasterThreads[] = "num-raster-threads"; |
| 52 | 52 |
| 53 // Show metrics about overdraw in about:tracing recordings, such as the number | 53 // Show metrics about overdraw in about:tracing recordings, such as the number |
| 54 // of pixels culled, and the number of pixels drawn, for each frame. | 54 // of pixels culled, and the number of pixels drawn, for each frame. |
| 55 const char kTraceOverdraw[] = "trace-overdraw"; | 55 const char kTraceOverdraw[] = "trace-overdraw"; |
| 56 | 56 |
| 57 // Logs all rendered frames. | 57 // Logs all rendered frames. |
| 58 const char kTraceAllRenderedFrames[] = "trace-all-rendered-frames"; | 58 const char kTraceAllRenderedFrames[] = "trace-all-rendered-frames"; |
| 59 | 59 |
| 60 // Re-rasters everything multiple times to simulate a much slower machine. | 60 // Re-rasters everything multiple times to simulate a much slower machine. |
| 61 // 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 |
| 62 // complete, such as --slow-down-raster-scale-factor=25. | 62 // complete, such as --slow-down-raster-scale-factor=25. |
| 63 const char kSlowDownRasterScaleFactor[] = "slow-down-raster-scale-factor"; | 63 const char kSlowDownRasterScaleFactor[] = "slow-down-raster-scale-factor"; |
| 64 | 64 |
| 65 // Disable scheduling of rasterization jobs according to their estimated | |
| 66 // processing cost. | |
| 67 const char kDisableCheapnessEstimator[] = "disable-cheapness-estimator"; | |
| 68 | |
| 69 // The scale factor for low resolution tile contents. | 65 // The scale factor for low resolution tile contents. |
| 70 const char kLowResolutionContentsScaleFactor[] = | 66 const char kLowResolutionContentsScaleFactor[] = |
| 71 "low-resolution-contents-scale-factor"; | 67 "low-resolution-contents-scale-factor"; |
| 72 | 68 |
| 73 // Max tiles allowed for each tilings interest area. | 69 // Max tiles allowed for each tilings interest area. |
| 74 const char kMaxTilesForInterestArea[] = "max-tiles-for-interest-area"; | 70 const char kMaxTilesForInterestArea[] = "max-tiles-for-interest-area"; |
| 75 | 71 |
| 76 // The amount of unused resource memory compositor is allowed to keep around. | 72 // The amount of unused resource memory compositor is allowed to keep around. |
| 77 const char kMaxUnusedResourceMemoryUsagePercentage[] = | 73 const char kMaxUnusedResourceMemoryUsagePercentage[] = |
| 78 "max-unused-resource-memory-usage-percentage"; | 74 "max-unused-resource-memory-usage-percentage"; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 147 |
| 152 #if defined(OS_ANDROID) | 148 #if defined(OS_ANDROID) |
| 153 return true; | 149 return true; |
| 154 #else | 150 #else |
| 155 return false; | 151 return false; |
| 156 #endif | 152 #endif |
| 157 } | 153 } |
| 158 | 154 |
| 159 } // namespace switches | 155 } // namespace switches |
| 160 } // namespace cc | 156 } // namespace cc |
| OLD | NEW |