Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: cc/debug/debug_colors.h

Issue 2748263002: Move cc::DisplayItemList and related classes into cc/paint/ (Closed)
Patch Set: none Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_DEBUG_COLORS_H_ 5 #ifndef CC_DEBUG_DEBUG_COLORS_H_
6 #define CC_DEBUG_DEBUG_COLORS_H_ 6 #define CC_DEBUG_DEBUG_COLORS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.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 LayerTreeImpl;
14
15 class DebugColors { 13 class DebugColors {
16 public: 14 public:
17 static SkColor TiledContentLayerBorderColor(); 15 static SkColor TiledContentLayerBorderColor();
18 static int TiledContentLayerBorderWidth(const LayerTreeImpl* tree_impl); 16 static int TiledContentLayerBorderWidth(float device_scale_factor);
enne (OOO) 2017/03/16 00:51:15 This is nice cleanup.
chrishtr 2017/03/16 02:00:35 cool thanks
19 17
20 static SkColor ImageLayerBorderColor(); 18 static SkColor ImageLayerBorderColor();
21 static int ImageLayerBorderWidth(const LayerTreeImpl* tree_impl); 19 static int ImageLayerBorderWidth(float device_scale_factor);
22 20
23 static SkColor ContentLayerBorderColor(); 21 static SkColor ContentLayerBorderColor();
24 static int ContentLayerBorderWidth(const LayerTreeImpl* tree_impl); 22 static int ContentLayerBorderWidth(float device_scale_factor);
25 23
26 static SkColor MaskingLayerBorderColor(); 24 static SkColor MaskingLayerBorderColor();
27 static int MaskingLayerBorderWidth(const LayerTreeImpl* tree_impl); 25 static int MaskingLayerBorderWidth(float device_scale_factor);
28 26
29 static SkColor ContainerLayerBorderColor(); 27 static SkColor ContainerLayerBorderColor();
30 static int ContainerLayerBorderWidth(const LayerTreeImpl* tree_impl); 28 static int ContainerLayerBorderWidth(float device_scale_factor);
31 29
32 static SkColor SurfaceLayerBorderColor(); 30 static SkColor SurfaceLayerBorderColor();
33 static int SurfaceLayerBorderWidth(const LayerTreeImpl* tree_impl); 31 static int SurfaceLayerBorderWidth(float device_scale_factor);
34 32
35 static SkColor SurfaceBorderColor(); 33 static SkColor SurfaceBorderColor();
36 static int SurfaceBorderWidth(const LayerTreeImpl* tree_impl); 34 static int SurfaceBorderWidth(float device_scale_factor);
37 35
38 static SkColor HighResTileBorderColor(); 36 static SkColor HighResTileBorderColor();
39 static int HighResTileBorderWidth(const LayerTreeImpl* tree_impl); 37 static int HighResTileBorderWidth(float device_scale_factor);
40 38
41 static SkColor LowResTileBorderColor(); 39 static SkColor LowResTileBorderColor();
42 static int LowResTileBorderWidth(const LayerTreeImpl* tree_impl); 40 static int LowResTileBorderWidth(float device_scale_factor);
43 41
44 static SkColor ExtraHighResTileBorderColor(); 42 static SkColor ExtraHighResTileBorderColor();
45 static int ExtraHighResTileBorderWidth(const LayerTreeImpl* tree_impl); 43 static int ExtraHighResTileBorderWidth(float device_scale_factor);
46 44
47 static SkColor ExtraLowResTileBorderColor(); 45 static SkColor ExtraLowResTileBorderColor();
48 static int ExtraLowResTileBorderWidth(const LayerTreeImpl* tree_impl); 46 static int ExtraLowResTileBorderWidth(float device_scale_factor);
49 47
50 static SkColor MissingTileBorderColor(); 48 static SkColor MissingTileBorderColor();
51 static int MissingTileBorderWidth(const LayerTreeImpl* tree_impl); 49 static int MissingTileBorderWidth(float device_scale_factor);
52 50
53 static SkColor SolidColorTileBorderColor(); 51 static SkColor SolidColorTileBorderColor();
54 static int SolidColorTileBorderWidth(const LayerTreeImpl* tree_impl); 52 static int SolidColorTileBorderWidth(float device_scale_factor);
55 53
56 static SkColor OOMTileBorderColor(); 54 static SkColor OOMTileBorderColor();
57 static int OOMTileBorderWidth(const LayerTreeImpl* tree_impl); 55 static int OOMTileBorderWidth(float device_scale_factor);
58 56
59 static SkColor DirectPictureBorderColor(); 57 static SkColor DirectPictureBorderColor();
60 static int DirectPictureBorderWidth(const LayerTreeImpl* tree_impl); 58 static int DirectPictureBorderWidth(float device_scale_factor);
61 59
62 static SkColor CompressedTileBorderColor(); 60 static SkColor CompressedTileBorderColor();
63 static int CompressedTileBorderWidth(const LayerTreeImpl* tree_impl); 61 static int CompressedTileBorderWidth(float device_scale_factor);
64 62
65 static SkColor DefaultCheckerboardColor(); 63 static SkColor DefaultCheckerboardColor();
66 static SkColor EvictedTileCheckerboardColor(); 64 static SkColor EvictedTileCheckerboardColor();
67 static SkColor InvalidatedTileCheckerboardColor(); 65 static SkColor InvalidatedTileCheckerboardColor();
68 66
69 static const int kFadeSteps = 50; 67 static const int kFadeSteps = 50;
70 static SkColor PaintRectBorderColor(int step); 68 static SkColor PaintRectBorderColor(int step);
71 static int PaintRectBorderWidth(); 69 static int PaintRectBorderWidth();
72 static SkColor PaintRectFillColor(int step); 70 static SkColor PaintRectFillColor(int step);
73 71
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 static SkColor MemoryDisplayTextColor(); 119 static SkColor MemoryDisplayTextColor();
122 static SkColor PaintTimeDisplayTextAndGraphColor(); 120 static SkColor PaintTimeDisplayTextAndGraphColor();
123 121
124 private: 122 private:
125 DISALLOW_IMPLICIT_CONSTRUCTORS(DebugColors); 123 DISALLOW_IMPLICIT_CONSTRUCTORS(DebugColors);
126 }; 124 };
127 125
128 } // namespace cc 126 } // namespace cc
129 127
130 #endif // CC_DEBUG_DEBUG_COLORS_H_ 128 #endif // CC_DEBUG_DEBUG_COLORS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698