| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 // The height of the movable top controls. | 48 // The height of the movable top controls. |
| 49 const char kTopControlsHeight[] = "top-controls-height"; | 49 const char kTopControlsHeight[] = "top-controls-height"; |
| 50 | 50 |
| 51 // Percentage of the top controls need to be hidden before they will auto hide. | 51 // Percentage of the top controls need to be hidden before they will auto hide. |
| 52 const char kTopControlsHideThreshold[] = "top-controls-hide-threshold"; | 52 const char kTopControlsHideThreshold[] = "top-controls-hide-threshold"; |
| 53 | 53 |
| 54 // Percentage of the top controls need to be shown before they will auto show. | 54 // Percentage of the top controls need to be shown before they will auto show. |
| 55 const char kTopControlsShowThreshold[] = "top-controls-show-threshold"; | 55 const char kTopControlsShowThreshold[] = "top-controls-show-threshold"; |
| 56 | 56 |
| 57 // Number of worker threads used to rasterize content. |
| 58 const char kNumRasterThreads[] = "num-raster-threads"; |
| 59 |
| 57 // Show metrics about overdraw in about:tracing recordings, such as the number | 60 // Show metrics about overdraw in about:tracing recordings, such as the number |
| 58 // of pixels culled, and the number of pixels drawn, for each frame. | 61 // of pixels culled, and the number of pixels drawn, for each frame. |
| 59 const char kTraceOverdraw[] = "trace-overdraw"; | 62 const char kTraceOverdraw[] = "trace-overdraw"; |
| 60 | 63 |
| 61 // Re-rasters everything multiple times to simulate a much slower machine. | 64 // Re-rasters everything multiple times to simulate a much slower machine. |
| 62 // Give a scale factor to cause raster to take that many times longer to | 65 // Give a scale factor to cause raster to take that many times longer to |
| 63 // complete, such as --slow-down-raster-scale-factor=25. | 66 // complete, such as --slow-down-raster-scale-factor=25. |
| 64 const char kSlowDownRasterScaleFactor[] = "slow-down-raster-scale-factor"; | 67 const char kSlowDownRasterScaleFactor[] = "slow-down-raster-scale-factor"; |
| 65 | 68 |
| 66 // Max tiles allowed for each tilings interest area. | 69 // Max tiles allowed for each tilings interest area. |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 if (command_line.HasSwitch(switches::kDisableMapImage)) | 201 if (command_line.HasSwitch(switches::kDisableMapImage)) |
| 199 return false; | 202 return false; |
| 200 else if (command_line.HasSwitch(switches::kEnableMapImage)) | 203 else if (command_line.HasSwitch(switches::kEnableMapImage)) |
| 201 return true; | 204 return true; |
| 202 | 205 |
| 203 return false; | 206 return false; |
| 204 } | 207 } |
| 205 | 208 |
| 206 } // namespace switches | 209 } // namespace switches |
| 207 } // namespace cc | 210 } // namespace cc |
| OLD | NEW |