debug_colors.h revision a1401311d1ab56c4ed0a474bd38c108f75cb0cd9
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.
4
5#ifndef CC_DEBUG_DEBUG_COLORS_H_
6#define CC_DEBUG_DEBUG_COLORS_H_
7
8#include "base/basictypes.h"
9#include "third_party/skia/include/core/SkColor.h"
10
11namespace cc {
12
13class LayerTreeImpl;
14
15class DebugColors {
16 public:
17  static SkColor TiledContentLayerBorderColor();
18  static int TiledContentLayerBorderWidth(const LayerTreeImpl* tree_impl);
19
20  static SkColor ImageLayerBorderColor();
21  static int ImageLayerBorderWidth(const LayerTreeImpl* tree_impl);
22
23  static SkColor ContentLayerBorderColor();
24  static int ContentLayerBorderWidth(const LayerTreeImpl* tree_impl);
25
26  static SkColor MaskingLayerBorderColor();
27  static int MaskingLayerBorderWidth(const LayerTreeImpl* tree_impl);
28
29  static SkColor ContainerLayerBorderColor();
30  static int ContainerLayerBorderWidth(const LayerTreeImpl* tree_impl);
31
32  static SkColor SurfaceLayerBorderColor();
33  static int SurfaceLayerBorderWidth(const LayerTreeImpl* tree_impl);
34
35  static SkColor SurfaceBorderColor();
36  static int SurfaceBorderWidth(const LayerTreeImpl* tree_impl);
37
38  static SkColor SurfaceReplicaBorderColor();
39  static int SurfaceReplicaBorderWidth(const LayerTreeImpl* tree_impl);
40
41  static SkColor HighResTileBorderColor();
42  static int HighResTileBorderWidth(const LayerTreeImpl* tree_impl);
43
44  static SkColor LowResTileBorderColor();
45  static int LowResTileBorderWidth(const LayerTreeImpl* tree_impl);
46
47  static SkColor ExtraHighResTileBorderColor();
48  static int ExtraHighResTileBorderWidth(const LayerTreeImpl* tree_impl);
49
50  static SkColor ExtraLowResTileBorderColor();
51  static int ExtraLowResTileBorderWidth(const LayerTreeImpl* tree_impl);
52
53  static SkColor MissingTileBorderColor();
54  static int MissingTileBorderWidth(const LayerTreeImpl* tree_impl);
55
56  static SkColor SolidColorTileBorderColor();
57  static int SolidColorTileBorderWidth(const LayerTreeImpl* tree_impl);
58
59  static SkColor PictureTileBorderColor();
60  static int PictureTileBorderWidth(const LayerTreeImpl* tree_impl);
61
62  static SkColor DirectPictureBorderColor();
63  static int DirectPictureBorderWidth(const LayerTreeImpl* tree_impl);
64
65  static SkColor DefaultCheckerboardColor();
66  static SkColor EvictedTileCheckerboardColor();
67  static SkColor InvalidatedTileCheckerboardColor();
68
69  static const int kFadeSteps = 50;
70  static SkColor PaintRectBorderColor(int step);
71  static int PaintRectBorderWidth();
72  static SkColor PaintRectFillColor(int step);
73
74  static SkColor PropertyChangedRectBorderColor();
75  static int PropertyChangedRectBorderWidth();
76  static SkColor PropertyChangedRectFillColor();
77
78  static SkColor SurfaceDamageRectBorderColor();
79  static int SurfaceDamageRectBorderWidth();
80  static SkColor SurfaceDamageRectFillColor();
81
82  static SkColor ScreenSpaceLayerRectBorderColor();
83  static int ScreenSpaceLayerRectBorderWidth();
84  static SkColor ScreenSpaceLayerRectFillColor();
85
86  static SkColor ScreenSpaceSurfaceReplicaRectBorderColor();
87  static int ScreenSpaceSurfaceReplicaRectBorderWidth();
88  static SkColor ScreenSpaceSurfaceReplicaRectFillColor();
89
90  static SkColor OccludingRectBorderColor();
91  static int OccludingRectBorderWidth();
92  static SkColor OccludingRectFillColor();
93
94  static SkColor NonOccludingRectBorderColor();
95  static int NonOccludingRectBorderWidth();
96  static SkColor NonOccludingRectFillColor();
97
98  static SkColor TouchEventHandlerRectBorderColor();
99  static int TouchEventHandlerRectBorderWidth();
100  static SkColor TouchEventHandlerRectFillColor();
101
102  static SkColor WheelEventHandlerRectBorderColor();
103  static int WheelEventHandlerRectBorderWidth();
104  static SkColor WheelEventHandlerRectFillColor();
105
106  static SkColor NonFastScrollableRectBorderColor();
107  static int NonFastScrollableRectBorderWidth();
108  static SkColor NonFastScrollableRectFillColor();
109
110  static SkColor LayerAnimationBoundsBorderColor();
111  static int LayerAnimationBoundsBorderWidth();
112  static SkColor LayerAnimationBoundsFillColor();
113
114  static SkColor NonPaintedFillColor();
115  static SkColor MissingPictureFillColor();
116  static SkColor PictureBorderColor();
117
118  static SkColor HUDBackgroundColor();
119  static SkColor HUDSeparatorLineColor();
120  static SkColor HUDIndicatorLineColor();
121
122  static SkColor PlatformLayerTreeTextColor();
123  static SkColor FPSDisplayTextAndGraphColor();
124  static SkColor MemoryDisplayTextColor();
125  static SkColor PaintTimeDisplayTextAndGraphColor();
126
127 private:
128  DISALLOW_IMPLICIT_CONSTRUCTORS(DebugColors);
129};
130
131}  // namespace cc
132
133#endif  // CC_DEBUG_DEBUG_COLORS_H_
134