Separate Simple Backend creation from initialization.
[chromium-blink-merge.git] / cc / debug / debug_colors.h
blob51be76f2d440bdb58b59935a3f601977d81892ef
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
3 // found in the LICENSE file.
5 #ifndef CC_DEBUG_DEBUG_COLORS_H_
6 #define CC_DEBUG_DEBUG_COLORS_H_
8 #include "base/basictypes.h"
9 #include "third_party/skia/include/core/SkColor.h"
11 namespace cc {
13 class LayerTreeImpl;
15 class DebugColors {
16 public:
17 static SkColor TiledContentLayerBorderColor();
18 static int TiledContentLayerBorderWidth(const LayerTreeImpl* tree_impl);
20 static SkColor ImageLayerBorderColor();
21 static int ImageLayerBorderWidth(const LayerTreeImpl* tree_impl);
23 static SkColor ContentLayerBorderColor();
24 static int ContentLayerBorderWidth(const LayerTreeImpl* tree_impl);
26 static SkColor MaskingLayerBorderColor();
27 static int MaskingLayerBorderWidth(const LayerTreeImpl* tree_impl);
29 static SkColor ContainerLayerBorderColor();
30 static int ContainerLayerBorderWidth(const LayerTreeImpl* tree_impl);
32 static SkColor SurfaceBorderColor();
33 static int SurfaceBorderWidth(const LayerTreeImpl* tree_impl);
35 static SkColor SurfaceReplicaBorderColor();
36 static int SurfaceReplicaBorderWidth(const LayerTreeImpl* tree_impl);
38 static SkColor HighResTileBorderColor();
39 static int HighResTileBorderWidth(const LayerTreeImpl* tree_impl);
41 static SkColor LowResTileBorderColor();
42 static int LowResTileBorderWidth(const LayerTreeImpl* tree_impl);
44 static SkColor ExtraHighResTileBorderColor();
45 static int ExtraHighResTileBorderWidth(const LayerTreeImpl* tree_impl);
47 static SkColor ExtraLowResTileBorderColor();
48 static int ExtraLowResTileBorderWidth(const LayerTreeImpl* tree_impl);
50 static SkColor MissingTileBorderColor();
51 static int MissingTileBorderWidth(const LayerTreeImpl* tree_impl);
53 static SkColor CulledTileBorderColor();
54 static int CulledTileBorderWidth(const LayerTreeImpl* tree_impl);
56 static SkColor SolidColorTileBorderColor();
57 static int SolidColorTileBorderWidth(const LayerTreeImpl* tree_impl);
59 static SkColor PictureTileBorderColor();
60 static int PictureTileBorderWidth(const LayerTreeImpl* tree_impl);
62 static SkColor DefaultCheckerboardColor();
63 static SkColor EvictedTileCheckerboardColor();
64 static SkColor InvalidatedTileCheckerboardColor();
66 static SkColor PaintRectBorderColor();
67 static int PaintRectBorderWidth(const LayerTreeImpl* tree_impl);
68 static SkColor PaintRectFillColor();
70 static SkColor PropertyChangedRectBorderColor();
71 static int PropertyChangedRectBorderWidth(const LayerTreeImpl* tree_impl);
72 static SkColor PropertyChangedRectFillColor();
74 static SkColor SurfaceDamageRectBorderColor();
75 static int SurfaceDamageRectBorderWidth(const LayerTreeImpl* tree_impl);
76 static SkColor SurfaceDamageRectFillColor();
78 static SkColor ScreenSpaceLayerRectBorderColor();
79 static int ScreenSpaceLayerRectBorderWidth(const LayerTreeImpl* tree_impl);
80 static SkColor ScreenSpaceLayerRectFillColor();
82 static SkColor ScreenSpaceSurfaceReplicaRectBorderColor();
83 static int ScreenSpaceSurfaceReplicaRectBorderWidth(
84 const LayerTreeImpl* tree_impl);
85 static SkColor ScreenSpaceSurfaceReplicaRectFillColor();
87 static SkColor OccludingRectBorderColor();
88 static int OccludingRectBorderWidth(const LayerTreeImpl* tree_impl);
89 static SkColor OccludingRectFillColor();
91 static SkColor NonOccludingRectBorderColor();
92 static int NonOccludingRectBorderWidth(const LayerTreeImpl* tree_impl);
93 static SkColor NonOccludingRectFillColor();
95 static SkColor NonPaintedFillColor();
96 static SkColor MissingPictureFillColor();
97 static SkColor PictureBorderColor();
99 static SkColor HUDBackgroundColor();
100 static SkColor HUDSeparatorLineColor();
101 static SkColor HUDIndicatorLineColor();
103 static SkColor PlatformLayerTreeTextColor();
104 static SkColor FPSDisplayTextAndGraphColor();
105 static SkColor MemoryDisplayTextColor();
106 static SkColor PaintTimeDisplayTextAndGraphColor();
108 private:
109 DISALLOW_IMPLICIT_CONSTRUCTORS(DebugColors);
112 } // namespace cc
114 #endif // CC_DEBUG_DEBUG_COLORS_H_