| 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_colors.h" | 5 #include "cc/debug_colors.h" |
| 6 | 6 |
| 7 #include "cc/layer_tree_impl.h" | 7 #include "cc/layer_tree_impl.h" |
| 8 | 8 |
| 9 namespace cc { | 9 namespace cc { |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 int DebugColors::ExtraLowResTileBorderWidth(const LayerTreeImpl* tree_impl) { re
turn Scale(2, tree_impl); } | 61 int DebugColors::ExtraLowResTileBorderWidth(const LayerTreeImpl* tree_impl) { re
turn Scale(2, tree_impl); } |
| 62 | 62 |
| 63 // Missing tile borders are red. | 63 // Missing tile borders are red. |
| 64 SkColor DebugColors::MissingTileBorderColor() { return SkColorSetARGB(100, 255,
0, 0); } | 64 SkColor DebugColors::MissingTileBorderColor() { return SkColorSetARGB(100, 255,
0, 0); } |
| 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. |
| 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); } |
| 74 |
| 71 // ======= Checkerboard colors ======= | 75 // ======= Checkerboard colors ======= |
| 72 | 76 |
| 73 // Non-debug checkerboards are grey. | 77 // Non-debug checkerboards are grey. |
| 74 SkColor DebugColors::DefaultCheckerboardColor() { return SkColorSetRGB(241, 241,
241); } | 78 SkColor DebugColors::DefaultCheckerboardColor() { return SkColorSetRGB(241, 241,
241); } |
| 75 | 79 |
| 76 // Invalidated tiles get sky blue checkerboards. | 80 // Invalidated tiles get sky blue checkerboards. |
| 77 SkColor DebugColors::InvalidatedTileCheckerboardColor() { return SkColorSetRGB(1
28, 200, 245); } | 81 SkColor DebugColors::InvalidatedTileCheckerboardColor() { return SkColorSetRGB(1
28, 200, 245); } |
| 78 | 82 |
| 79 // Evicted tiles get pale red checkerboards. | 83 // Evicted tiles get pale red checkerboards. |
| 80 SkColor DebugColors::EvictedTileCheckerboardColor() { return SkColorSetRGB(255,
200, 200); } | 84 SkColor DebugColors::EvictedTileCheckerboardColor() { return SkColorSetRGB(255,
200, 200); } |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 128 |
| 125 // ======= HUD widget colors ======= | 129 // ======= HUD widget colors ======= |
| 126 | 130 |
| 127 SkColor DebugColors::PlatformLayerTreeTextColor() { return SK_ColorRED; } | 131 SkColor DebugColors::PlatformLayerTreeTextColor() { return SK_ColorRED; } |
| 128 SkColor DebugColors::FPSDisplayTextAndGraphColor() { return SK_ColorRED; } | 132 SkColor DebugColors::FPSDisplayTextAndGraphColor() { return SK_ColorRED; } |
| 129 | 133 |
| 130 // Paint time display has the same green as used for paint time in the WebInspec
tor | 134 // Paint time display has the same green as used for paint time in the WebInspec
tor |
| 131 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() { return SkColorSetRGB(
95, 160, 80); } | 135 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() { return SkColorSetRGB(
95, 160, 80); } |
| 132 | 136 |
| 133 } // namespace cc | 137 } // namespace cc |
| OLD | NEW |