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 | |
60 // Show metrics about overdraw in about:tracing recordings, such as the number | 57 // Show metrics about overdraw in about:tracing recordings, such as the number |
61 // of pixels culled, and the number of pixels drawn, for each frame. | 58 // of pixels culled, and the number of pixels drawn, for each frame. |
62 const char kTraceOverdraw[] = "trace-overdraw"; | 59 const char kTraceOverdraw[] = "trace-overdraw"; |
63 | 60 |
64 // Re-rasters everything multiple times to simulate a much slower machine. | 61 // Re-rasters everything multiple times to simulate a much slower machine. |
65 // Give a scale factor to cause raster to take that many times longer to | 62 // Give a scale factor to cause raster to take that many times longer to |
66 // complete, such as --slow-down-raster-scale-factor=25. | 63 // complete, such as --slow-down-raster-scale-factor=25. |
67 const char kSlowDownRasterScaleFactor[] = "slow-down-raster-scale-factor"; | 64 const char kSlowDownRasterScaleFactor[] = "slow-down-raster-scale-factor"; |
68 | 65 |
69 // Max tiles allowed for each tilings interest area. | 66 // Max tiles allowed for each tilings interest area. |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 if (command_line.HasSwitch(switches::kDisableMapImage)) | 198 if (command_line.HasSwitch(switches::kDisableMapImage)) |
202 return false; | 199 return false; |
203 else if (command_line.HasSwitch(switches::kEnableMapImage)) | 200 else if (command_line.HasSwitch(switches::kEnableMapImage)) |
204 return true; | 201 return true; |
205 | 202 |
206 return false; | 203 return false; |
207 } | 204 } |
208 | 205 |
209 } // namespace switches | 206 } // namespace switches |
210 } // namespace cc | 207 } // namespace cc |
OLD | NEW |