| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/debug/debug_colors.h" | 5 #include "cc/debug/debug_colors.h" |
| 6 | 6 |
| 7 #include "cc/trees/layer_tree_impl.h" | 7 #include "cc/trees/layer_tree_impl.h" |
| 8 | 8 |
| 9 namespace cc { | 9 namespace cc { |
| 10 | 10 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 // Solid color tile borders are grey. | 123 // Solid color tile borders are grey. |
| 124 SkColor DebugColors::SolidColorTileBorderColor() { | 124 SkColor DebugColors::SolidColorTileBorderColor() { |
| 125 return SkColorSetARGB(128, 128, 128, 128); | 125 return SkColorSetARGB(128, 128, 128, 128); |
| 126 } | 126 } |
| 127 int DebugColors::SolidColorTileBorderWidth(const LayerTreeImpl* tree_impl) { | 127 int DebugColors::SolidColorTileBorderWidth(const LayerTreeImpl* tree_impl) { |
| 128 return Scale(1, tree_impl); | 128 return Scale(1, tree_impl); |
| 129 } | 129 } |
| 130 | 130 |
| 131 // Picture tile borders are dark grey. | 131 // Picture tile borders are dark grey. |
| 132 SkColor DebugColors::PictureTileBorderColor() { return SkColorSetARGB(64, 64, 64
, 0); } | 132 SkColor DebugColors::PictureTileBorderColor() { |
| 133 int DebugColors::PictureTileBorderWidth(const LayerTreeImpl* tree_impl) { return
Scale(1, tree_impl); } | 133 return SkColorSetARGB(64, 64, 64, 0); |
| 134 } |
| 135 int DebugColors::PictureTileBorderWidth(const LayerTreeImpl* tree_impl) { |
| 136 return Scale(1, tree_impl); |
| 137 } |
| 138 |
| 139 // Direct picture tile borders are chartreuse |
| 140 SkColor DebugColors::DirectPictureTileBorderColor() { |
| 141 return SkColorSetARGB(255, 127, 255, 0); |
| 142 } |
| 143 int DebugColors::DirectPictureTileBorderWidth(const LayerTreeImpl* tree_impl) { |
| 144 return Scale(1, tree_impl); |
| 145 } |
| 134 | 146 |
| 135 // ======= Checkerboard colors ======= | 147 // ======= Checkerboard colors ======= |
| 136 | 148 |
| 137 // Non-debug checkerboards are grey. | 149 // Non-debug checkerboards are grey. |
| 138 SkColor DebugColors::DefaultCheckerboardColor() { | 150 SkColor DebugColors::DefaultCheckerboardColor() { |
| 139 return SkColorSetRGB(241, 241, 241); | 151 return SkColorSetRGB(241, 241, 241); |
| 140 } | 152 } |
| 141 | 153 |
| 142 // Invalidated tiles get sky blue checkerboards. | 154 // Invalidated tiles get sky blue checkerboards. |
| 143 SkColor DebugColors::InvalidatedTileCheckerboardColor() { | 155 SkColor DebugColors::InvalidatedTileCheckerboardColor() { |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 SkColor DebugColors::MemoryDisplayTextColor() { | 271 SkColor DebugColors::MemoryDisplayTextColor() { |
| 260 return SkColorSetARGB(255, 220, 220, 220); | 272 return SkColorSetARGB(255, 220, 220, 220); |
| 261 } | 273 } |
| 262 | 274 |
| 263 // Paint time display in green (similar to paint times in the WebInspector) | 275 // Paint time display in green (similar to paint times in the WebInspector) |
| 264 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() { | 276 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() { |
| 265 return SkColorSetRGB(75, 155, 55); | 277 return SkColorSetRGB(75, 155, 55); |
| 266 } | 278 } |
| 267 | 279 |
| 268 } // namespace cc | 280 } // namespace cc |
| OLD | NEW |