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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 const char kStrictLayerPropertyChangeChecking[] = | 79 const char kStrictLayerPropertyChangeChecking[] = |
80 "strict-layer-property-change-checking"; | 80 "strict-layer-property-change-checking"; |
81 | 81 |
82 // Virtual viewport for fixed-position elements, scrollbars during pinch. | 82 // Virtual viewport for fixed-position elements, scrollbars during pinch. |
83 const char kEnablePinchVirtualViewport[] = "enable-pinch-virtual-viewport"; | 83 const char kEnablePinchVirtualViewport[] = "enable-pinch-virtual-viewport"; |
84 | 84 |
85 const char kEnablePartialSwap[] = "enable-partial-swap"; | 85 const char kEnablePartialSwap[] = "enable-partial-swap"; |
86 // Disable partial swap which is needed for some OpenGL drivers / emulators. | 86 // Disable partial swap which is needed for some OpenGL drivers / emulators. |
87 const char kUIDisablePartialSwap[] = "ui-disable-partial-swap"; | 87 const char kUIDisablePartialSwap[] = "ui-disable-partial-swap"; |
88 | 88 |
89 const char kEnablePerTilePainting[] = "enable-per-tile-painting"; | |
90 const char kUIEnablePerTilePainting[] = "ui-enable-per-tile-painting"; | |
91 | |
92 // Enables the GPU benchmarking extension | 89 // Enables the GPU benchmarking extension |
93 const char kEnableGpuBenchmarking[] = "enable-gpu-benchmarking"; | 90 const char kEnableGpuBenchmarking[] = "enable-gpu-benchmarking"; |
94 | 91 |
95 // Renders a border around compositor layers to help debug and study | 92 // Renders a border around compositor layers to help debug and study |
96 // layer compositing. | 93 // layer compositing. |
97 const char kShowCompositedLayerBorders[] = "show-composited-layer-borders"; | 94 const char kShowCompositedLayerBorders[] = "show-composited-layer-borders"; |
98 const char kUIShowCompositedLayerBorders[] = "ui-show-layer-borders"; | 95 const char kUIShowCompositedLayerBorders[] = "ui-show-layer-borders"; |
99 | 96 |
100 // Draws a FPS indicator | 97 // Draws a FPS indicator |
101 const char kShowFPSCounter[] = "show-fps-counter"; | 98 const char kShowFPSCounter[] = "show-fps-counter"; |
(...skipping 99 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 |