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 "base/macros.h" | 5 #include "base/macros.h" |
6 | 6 |
7 #include "cc/debug/debug_colors.h" | 7 #include "cc/debug/debug_colors.h" |
8 | 8 |
9 #include "cc/trees/layer_tree_impl.h" | 9 #include "cc/trees/layer_tree_impl.h" |
10 | 10 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 } | 139 } |
140 | 140 |
141 // Direct picture borders are chartreuse. | 141 // Direct picture borders are chartreuse. |
142 SkColor DebugColors::DirectPictureBorderColor() { | 142 SkColor DebugColors::DirectPictureBorderColor() { |
143 return SkColorSetARGB(255, 127, 255, 0); | 143 return SkColorSetARGB(255, 127, 255, 0); |
144 } | 144 } |
145 int DebugColors::DirectPictureBorderWidth(const LayerTreeImpl* tree_impl) { | 145 int DebugColors::DirectPictureBorderWidth(const LayerTreeImpl* tree_impl) { |
146 return Scale(1, tree_impl); | 146 return Scale(1, tree_impl); |
147 } | 147 } |
148 | 148 |
| 149 // Compressed tile borders are blue. |
| 150 SkColor DebugColors::CompressedTileBorderColor() { |
| 151 return SkColorSetARGB(100, 20, 20, 240); |
| 152 } |
| 153 int DebugColors::CompressedTileBorderWidth(const LayerTreeImpl* tree_impl) { |
| 154 return Scale(2, tree_impl); |
| 155 } |
| 156 |
149 // ======= Checkerboard colors ======= | 157 // ======= Checkerboard colors ======= |
150 | 158 |
151 // Non-debug checkerboards are grey. | 159 // Non-debug checkerboards are grey. |
152 SkColor DebugColors::DefaultCheckerboardColor() { | 160 SkColor DebugColors::DefaultCheckerboardColor() { |
153 return SkColorSetRGB(241, 241, 241); | 161 return SkColorSetRGB(241, 241, 241); |
154 } | 162 } |
155 | 163 |
156 // Invalidated tiles get sky blue checkerboards. | 164 // Invalidated tiles get sky blue checkerboards. |
157 SkColor DebugColors::InvalidatedTileCheckerboardColor() { | 165 SkColor DebugColors::InvalidatedTileCheckerboardColor() { |
158 return SkColorSetRGB(128, 200, 245); | 166 return SkColorSetRGB(128, 200, 245); |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 SkColor DebugColors::MemoryDisplayTextColor() { | 320 SkColor DebugColors::MemoryDisplayTextColor() { |
313 return SkColorSetARGB(255, 220, 220, 220); | 321 return SkColorSetARGB(255, 220, 220, 220); |
314 } | 322 } |
315 | 323 |
316 // Paint time display in green (similar to paint times in the WebInspector) | 324 // Paint time display in green (similar to paint times in the WebInspector) |
317 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() { | 325 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() { |
318 return SkColorSetRGB(75, 155, 55); | 326 return SkColorSetRGB(75, 155, 55); |
319 } | 327 } |
320 | 328 |
321 } // namespace cc | 329 } // namespace cc |
OLD | NEW |