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 #ifndef CC_DEBUG_COLORS_H_ | 5 #ifndef CC_DEBUG_COLORS_H_ |
6 #define CC_DEBUG_COLORS_H_ | 6 #define CC_DEBUG_COLORS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "third_party/skia/include/core/SkColor.h" | 9 #include "third_party/skia/include/core/SkColor.h" |
10 | 10 |
11 namespace cc { | 11 namespace cc { |
12 | 12 |
13 class LayerTreeHostImpl; | 13 class LayerTreeImpl; |
14 | 14 |
15 class DebugColors { | 15 class DebugColors { |
16 public: | 16 public: |
17 static SkColor TiledContentLayerBorderColor(); | 17 static SkColor TiledContentLayerBorderColor(); |
18 static int TiledContentLayerBorderWidth(const LayerTreeHostImpl* host_impl); | 18 static int TiledContentLayerBorderWidth(const LayerTreeImpl* tree_impl); |
19 | 19 |
20 static SkColor ContentLayerBorderColor(); | 20 static SkColor ContentLayerBorderColor(); |
21 static int ContentLayerBorderWidth(const LayerTreeHostImpl* host_impl); | 21 static int ContentLayerBorderWidth(const LayerTreeImpl* tree_impl); |
22 | 22 |
23 static SkColor MaskingLayerBorderColor(); | 23 static SkColor MaskingLayerBorderColor(); |
24 static int MaskingLayerBorderWidth(const LayerTreeHostImpl* host_impl); | 24 static int MaskingLayerBorderWidth(const LayerTreeImpl* tree_impl); |
25 | 25 |
26 static SkColor ContainerLayerBorderColor(); | 26 static SkColor ContainerLayerBorderColor(); |
27 static int ContainerLayerBorderWidth(const LayerTreeHostImpl* host_impl); | 27 static int ContainerLayerBorderWidth(const LayerTreeImpl* tree_impl); |
28 | 28 |
29 static SkColor SurfaceBorderColor(); | 29 static SkColor SurfaceBorderColor(); |
30 static int SurfaceBorderWidth(const LayerTreeHostImpl* host_impl); | 30 static int SurfaceBorderWidth(const LayerTreeImpl* tree_impl); |
31 | 31 |
32 static SkColor SurfaceReplicaBorderColor(); | 32 static SkColor SurfaceReplicaBorderColor(); |
33 static int SurfaceReplicaBorderWidth(const LayerTreeHostImpl* host_impl); | 33 static int SurfaceReplicaBorderWidth(const LayerTreeImpl* tree_impl); |
34 | 34 |
35 static SkColor TileBorderColor(); | 35 static SkColor TileBorderColor(); |
36 static int TileBorderWidth(const LayerTreeHostImpl* host_impl); | 36 static int TileBorderWidth(const LayerTreeImpl* tree_impl); |
37 | 37 |
38 static SkColor MissingTileBorderColor(); | 38 static SkColor MissingTileBorderColor(); |
39 static int MissingTileBorderWidth(const LayerTreeHostImpl* host_impl); | 39 static int MissingTileBorderWidth(const LayerTreeImpl* tree_impl); |
40 | 40 |
41 static SkColor CulledTileBorderColor(); | 41 static SkColor CulledTileBorderColor(); |
42 static int CulledTileBorderWidth(const LayerTreeHostImpl* host_impl); | 42 static int CulledTileBorderWidth(const LayerTreeImpl* tree_impl); |
43 | 43 |
44 static SkColor DefaultCheckerboardColor(); | 44 static SkColor DefaultCheckerboardColor(); |
45 static SkColor EvictedTileCheckerboardColor(); | 45 static SkColor EvictedTileCheckerboardColor(); |
46 static SkColor InvalidatedTileCheckerboardColor(); | 46 static SkColor InvalidatedTileCheckerboardColor(); |
47 | 47 |
48 static SkColor PaintRectBorderColor(); | 48 static SkColor PaintRectBorderColor(); |
49 static int PaintRectBorderWidth(const LayerTreeHostImpl* host_impl); | 49 static int PaintRectBorderWidth(const LayerTreeImpl* tree_impl); |
50 static SkColor PaintRectFillColor(); | 50 static SkColor PaintRectFillColor(); |
51 | 51 |
52 static SkColor PropertyChangedRectBorderColor(); | 52 static SkColor PropertyChangedRectBorderColor(); |
53 static int PropertyChangedRectBorderWidth(const LayerTreeHostImpl* host_impl); | 53 static int PropertyChangedRectBorderWidth(const LayerTreeImpl* tree_impl); |
54 static SkColor PropertyChangedRectFillColor(); | 54 static SkColor PropertyChangedRectFillColor(); |
55 | 55 |
56 static SkColor SurfaceDamageRectBorderColor(); | 56 static SkColor SurfaceDamageRectBorderColor(); |
57 static int SurfaceDamageRectBorderWidth(const LayerTreeHostImpl* host_impl); | 57 static int SurfaceDamageRectBorderWidth(const LayerTreeImpl* tree_impl); |
58 static SkColor SurfaceDamageRectFillColor(); | 58 static SkColor SurfaceDamageRectFillColor(); |
59 | 59 |
60 static SkColor ScreenSpaceLayerRectBorderColor(); | 60 static SkColor ScreenSpaceLayerRectBorderColor(); |
61 static int ScreenSpaceLayerRectBorderWidth(const LayerTreeHostImpl* host_impl)
; | 61 static int ScreenSpaceLayerRectBorderWidth(const LayerTreeImpl* tree_impl); |
62 static SkColor ScreenSpaceLayerRectFillColor(); | 62 static SkColor ScreenSpaceLayerRectFillColor(); |
63 | 63 |
64 static SkColor ScreenSpaceSurfaceReplicaRectBorderColor(); | 64 static SkColor ScreenSpaceSurfaceReplicaRectBorderColor(); |
65 static int ScreenSpaceSurfaceReplicaRectBorderWidth(const LayerTreeHostImpl* h
ost_impl); | 65 static int ScreenSpaceSurfaceReplicaRectBorderWidth(const LayerTreeImpl* tree_
impl); |
66 static SkColor ScreenSpaceSurfaceReplicaRectFillColor(); | 66 static SkColor ScreenSpaceSurfaceReplicaRectFillColor(); |
67 | 67 |
68 static SkColor OccludingRectBorderColor(); | 68 static SkColor OccludingRectBorderColor(); |
69 static int OccludingRectBorderWidth(const LayerTreeHostImpl* host_impl); | 69 static int OccludingRectBorderWidth(const LayerTreeImpl* tree_impl); |
70 static SkColor OccludingRectFillColor(); | 70 static SkColor OccludingRectFillColor(); |
71 | 71 |
72 static SkColor NonOccludingRectBorderColor(); | 72 static SkColor NonOccludingRectBorderColor(); |
73 static int NonOccludingRectBorderWidth(const LayerTreeHostImpl* host_impl); | 73 static int NonOccludingRectBorderWidth(const LayerTreeImpl* tree_impl); |
74 static SkColor NonOccludingRectFillColor(); | 74 static SkColor NonOccludingRectFillColor(); |
75 | 75 |
76 DISALLOW_IMPLICIT_CONSTRUCTORS(DebugColors); | 76 DISALLOW_IMPLICIT_CONSTRUCTORS(DebugColors); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace cc | 79 } // namespace cc |
80 | 80 |
81 #endif // CC_DEBUG_COLORS_H_ | 81 #endif // CC_DEBUG_COLORS_H_ |
OLD | NEW |