| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 // Renders a border around compositor layers to help debug and study | 95 // Renders a border around compositor layers to help debug and study |
| 96 // layer compositing. | 96 // layer compositing. |
| 97 const char kShowCompositedLayerBorders[] = "show-composited-layer-borders"; | 97 const char kShowCompositedLayerBorders[] = "show-composited-layer-borders"; |
| 98 const char kUIShowCompositedLayerBorders[] = "ui-show-layer-borders"; | 98 const char kUIShowCompositedLayerBorders[] = "ui-show-layer-borders"; |
| 99 | 99 |
| 100 // Draws a FPS indicator | 100 // Draws a FPS indicator |
| 101 const char kShowFPSCounter[] = "show-fps-counter"; | 101 const char kShowFPSCounter[] = "show-fps-counter"; |
| 102 const char kUIShowFPSCounter[] = "ui-show-fps-counter"; | 102 const char kUIShowFPSCounter[] = "ui-show-fps-counter"; |
| 103 | 103 |
| 104 // Renders a border that represents the bounding box for the layer's animation. |
| 105 const char kShowLayerAnimationBounds[] = "show-layer-animation-bounds"; |
| 106 |
| 104 // Show rects in the HUD around layers whose properties have changed. | 107 // Show rects in the HUD around layers whose properties have changed. |
| 105 const char kShowPropertyChangedRects[] = "show-property-changed-rects"; | 108 const char kShowPropertyChangedRects[] = "show-property-changed-rects"; |
| 106 const char kUIShowPropertyChangedRects[] = "ui-show-property-changed-rects"; | 109 const char kUIShowPropertyChangedRects[] = "ui-show-property-changed-rects"; |
| 107 | 110 |
| 108 // Show rects in the HUD around damage as it is recorded into each render | 111 // Show rects in the HUD around damage as it is recorded into each render |
| 109 // surface. | 112 // surface. |
| 110 const char kShowSurfaceDamageRects[] = "show-surface-damage-rects"; | 113 const char kShowSurfaceDamageRects[] = "show-surface-damage-rects"; |
| 111 const char kUIShowSurfaceDamageRects[] = "ui-show-surface-damage-rects"; | 114 const char kUIShowSurfaceDamageRects[] = "ui-show-surface-damage-rects"; |
| 112 | 115 |
| 113 // Show rects in the HUD around the screen-space transformed bounds of every | 116 // Show rects in the HUD around the screen-space transformed bounds of every |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 if (command_line.HasSwitch(cc::switches::kDisableMapImage)) | 196 if (command_line.HasSwitch(cc::switches::kDisableMapImage)) |
| 194 return false; | 197 return false; |
| 195 else if (command_line.HasSwitch(cc::switches::kEnableMapImage)) | 198 else if (command_line.HasSwitch(cc::switches::kEnableMapImage)) |
| 196 return true; | 199 return true; |
| 197 | 200 |
| 198 return false; | 201 return false; |
| 199 } | 202 } |
| 200 | 203 |
| 201 } // namespace switches | 204 } // namespace switches |
| 202 } // namespace cc | 205 } // namespace cc |
| OLD | NEW |