| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 int DebugColors::MissingTileBorderWidth(const LayerTreeImpl* tree_impl) { return
Scale(1, tree_impl); } | 65 int DebugColors::MissingTileBorderWidth(const LayerTreeImpl* tree_impl) { return
Scale(1, tree_impl); } |
| 66 | 66 |
| 67 // Culled tile borders are brown. | 67 // Culled tile borders are brown. |
| 68 SkColor DebugColors::CulledTileBorderColor() { return SkColorSetARGB(120, 160, 1
00, 0); } | 68 SkColor DebugColors::CulledTileBorderColor() { return SkColorSetARGB(120, 160, 1
00, 0); } |
| 69 int DebugColors::CulledTileBorderWidth(const LayerTreeImpl* tree_impl) { return
Scale(1, tree_impl); } | 69 int DebugColors::CulledTileBorderWidth(const LayerTreeImpl* tree_impl) { return
Scale(1, tree_impl); } |
| 70 | 70 |
| 71 // Solid color tile borders are grey. | 71 // Solid color tile borders are grey. |
| 72 SkColor DebugColors::SolidColorTileBorderColor() { return SkColorSetARGB(128, 12
8, 128, 128); } | 72 SkColor DebugColors::SolidColorTileBorderColor() { return SkColorSetARGB(128, 12
8, 128, 128); } |
| 73 int DebugColors::SolidColorTileBorderWidth(const LayerTreeImpl* tree_impl) { ret
urn Scale(1, tree_impl); } | 73 int DebugColors::SolidColorTileBorderWidth(const LayerTreeImpl* tree_impl) { ret
urn Scale(1, tree_impl); } |
| 74 | 74 |
| 75 // Picture tile borders are dark grey. |
| 76 SkColor DebugColors::PictureTileBorderColor() { return SkColorSetARGB(64, 64, 64
, 0); } |
| 77 int DebugColors::PictureTileBorderWidth(const LayerTreeImpl* tree_impl) { return
Scale(1, tree_impl); } |
| 78 |
| 75 // ======= Checkerboard colors ======= | 79 // ======= Checkerboard colors ======= |
| 76 | 80 |
| 77 // Non-debug checkerboards are grey. | 81 // Non-debug checkerboards are grey. |
| 78 SkColor DebugColors::DefaultCheckerboardColor() { return SkColorSetRGB(241, 241,
241); } | 82 SkColor DebugColors::DefaultCheckerboardColor() { return SkColorSetRGB(241, 241,
241); } |
| 79 | 83 |
| 80 // Invalidated tiles get sky blue checkerboards. | 84 // Invalidated tiles get sky blue checkerboards. |
| 81 SkColor DebugColors::InvalidatedTileCheckerboardColor() { return SkColorSetRGB(1
28, 200, 245); } | 85 SkColor DebugColors::InvalidatedTileCheckerboardColor() { return SkColorSetRGB(1
28, 200, 245); } |
| 82 | 86 |
| 83 // Evicted tiles get pale red checkerboards. | 87 // Evicted tiles get pale red checkerboards. |
| 84 SkColor DebugColors::EvictedTileCheckerboardColor() { return SkColorSetRGB(255,
200, 200); } | 88 SkColor DebugColors::EvictedTileCheckerboardColor() { return SkColorSetRGB(255,
200, 200); } |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 SkColor DebugColors::HUDIndicatorLineColor() { return SkColorSetARGB(255, 80, 80
, 80); } | 137 SkColor DebugColors::HUDIndicatorLineColor() { return SkColorSetARGB(255, 80, 80
, 80); } |
| 134 | 138 |
| 135 SkColor DebugColors::PlatformLayerTreeTextColor() { return SK_ColorRED; } | 139 SkColor DebugColors::PlatformLayerTreeTextColor() { return SK_ColorRED; } |
| 136 SkColor DebugColors::FPSDisplayTextAndGraphColor() { return SK_ColorRED; } | 140 SkColor DebugColors::FPSDisplayTextAndGraphColor() { return SK_ColorRED; } |
| 137 SkColor DebugColors::MemoryDisplayTextColor() { return SkColorSetARGB(255, 220,
220, 220); } | 141 SkColor DebugColors::MemoryDisplayTextColor() { return SkColorSetARGB(255, 220,
220, 220); } |
| 138 | 142 |
| 139 // Paint time display in green (similar to paint times in the WebInspector) | 143 // Paint time display in green (similar to paint times in the WebInspector) |
| 140 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() { return SkColorSetRGB(
75, 155, 55); } | 144 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() { return SkColorSetRGB(
75, 155, 55); } |
| 141 | 145 |
| 142 } // namespace cc | 146 } // namespace cc |
| OLD | NEW |