| 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 |
| 89 // Enables the GPU benchmarking extension | 92 // Enables the GPU benchmarking extension |
| 90 const char kEnableGpuBenchmarking[] = "enable-gpu-benchmarking"; | 93 const char kEnableGpuBenchmarking[] = "enable-gpu-benchmarking"; |
| 91 | 94 |
| 92 // Renders a border around compositor layers to help debug and study | 95 // Renders a border around compositor layers to help debug and study |
| 93 // layer compositing. | 96 // layer compositing. |
| 94 const char kShowCompositedLayerBorders[] = "show-composited-layer-borders"; | 97 const char kShowCompositedLayerBorders[] = "show-composited-layer-borders"; |
| 95 const char kUIShowCompositedLayerBorders[] = "ui-show-layer-borders"; | 98 const char kUIShowCompositedLayerBorders[] = "ui-show-layer-borders"; |
| 96 | 99 |
| 97 // Draws a FPS indicator | 100 // Draws a FPS indicator |
| 98 const char kShowFPSCounter[] = "show-fps-counter"; | 101 const char kShowFPSCounter[] = "show-fps-counter"; |
| (...skipping 99 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 |