| 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_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 "cc/debug/debug_export.h" |
| 9 #include "third_party/skia/include/core/SkColor.h" | 10 #include "third_party/skia/include/core/SkColor.h" |
| 10 | 11 |
| 11 namespace cc { | 12 namespace cc { |
| 12 | 13 |
| 13 class LayerTreeImpl; | 14 class CC_DEBUG_EXPORT DebugColors { |
| 14 | |
| 15 class DebugColors { | |
| 16 public: | 15 public: |
| 17 static SkColor TiledContentLayerBorderColor(); | 16 static SkColor TiledContentLayerBorderColor(); |
| 18 static int TiledContentLayerBorderWidth(const LayerTreeImpl* tree_impl); | 17 static int TiledContentLayerBorderWidth(float device_scale_factor); |
| 19 | 18 |
| 20 static SkColor ImageLayerBorderColor(); | 19 static SkColor ImageLayerBorderColor(); |
| 21 static int ImageLayerBorderWidth(const LayerTreeImpl* tree_impl); | 20 static int ImageLayerBorderWidth(float device_scale_factor); |
| 22 | 21 |
| 23 static SkColor ContentLayerBorderColor(); | 22 static SkColor ContentLayerBorderColor(); |
| 24 static int ContentLayerBorderWidth(const LayerTreeImpl* tree_impl); | 23 static int ContentLayerBorderWidth(float device_scale_factor); |
| 25 | 24 |
| 26 static SkColor MaskingLayerBorderColor(); | 25 static SkColor MaskingLayerBorderColor(); |
| 27 static int MaskingLayerBorderWidth(const LayerTreeImpl* tree_impl); | 26 static int MaskingLayerBorderWidth(float device_scale_factor); |
| 28 | 27 |
| 29 static SkColor ContainerLayerBorderColor(); | 28 static SkColor ContainerLayerBorderColor(); |
| 30 static int ContainerLayerBorderWidth(const LayerTreeImpl* tree_impl); | 29 static int ContainerLayerBorderWidth(float device_scale_factor); |
| 31 | 30 |
| 32 static SkColor SurfaceLayerBorderColor(); | 31 static SkColor SurfaceLayerBorderColor(); |
| 33 static int SurfaceLayerBorderWidth(const LayerTreeImpl* tree_impl); | 32 static int SurfaceLayerBorderWidth(float device_scale_factor); |
| 34 | 33 |
| 35 static SkColor SurfaceBorderColor(); | 34 static SkColor SurfaceBorderColor(); |
| 36 static int SurfaceBorderWidth(const LayerTreeImpl* tree_impl); | 35 static int SurfaceBorderWidth(float device_scale_factor); |
| 37 | 36 |
| 38 static SkColor HighResTileBorderColor(); | 37 static SkColor HighResTileBorderColor(); |
| 39 static int HighResTileBorderWidth(const LayerTreeImpl* tree_impl); | 38 static int HighResTileBorderWidth(float device_scale_factor); |
| 40 | 39 |
| 41 static SkColor LowResTileBorderColor(); | 40 static SkColor LowResTileBorderColor(); |
| 42 static int LowResTileBorderWidth(const LayerTreeImpl* tree_impl); | 41 static int LowResTileBorderWidth(float device_scale_factor); |
| 43 | 42 |
| 44 static SkColor ExtraHighResTileBorderColor(); | 43 static SkColor ExtraHighResTileBorderColor(); |
| 45 static int ExtraHighResTileBorderWidth(const LayerTreeImpl* tree_impl); | 44 static int ExtraHighResTileBorderWidth(float device_scale_factor); |
| 46 | 45 |
| 47 static SkColor ExtraLowResTileBorderColor(); | 46 static SkColor ExtraLowResTileBorderColor(); |
| 48 static int ExtraLowResTileBorderWidth(const LayerTreeImpl* tree_impl); | 47 static int ExtraLowResTileBorderWidth(float device_scale_factor); |
| 49 | 48 |
| 50 static SkColor MissingTileBorderColor(); | 49 static SkColor MissingTileBorderColor(); |
| 51 static int MissingTileBorderWidth(const LayerTreeImpl* tree_impl); | 50 static int MissingTileBorderWidth(float device_scale_factor); |
| 52 | 51 |
| 53 static SkColor SolidColorTileBorderColor(); | 52 static SkColor SolidColorTileBorderColor(); |
| 54 static int SolidColorTileBorderWidth(const LayerTreeImpl* tree_impl); | 53 static int SolidColorTileBorderWidth(float device_scale_factor); |
| 55 | 54 |
| 56 static SkColor OOMTileBorderColor(); | 55 static SkColor OOMTileBorderColor(); |
| 57 static int OOMTileBorderWidth(const LayerTreeImpl* tree_impl); | 56 static int OOMTileBorderWidth(float device_scale_factor); |
| 58 | 57 |
| 59 static SkColor DirectPictureBorderColor(); | 58 static SkColor DirectPictureBorderColor(); |
| 60 static int DirectPictureBorderWidth(const LayerTreeImpl* tree_impl); | 59 static int DirectPictureBorderWidth(float device_scale_factor); |
| 61 | 60 |
| 62 static SkColor CompressedTileBorderColor(); | 61 static SkColor CompressedTileBorderColor(); |
| 63 static int CompressedTileBorderWidth(const LayerTreeImpl* tree_impl); | 62 static int CompressedTileBorderWidth(float device_scale_factor); |
| 64 | 63 |
| 65 static SkColor DefaultCheckerboardColor(); | 64 static SkColor DefaultCheckerboardColor(); |
| 66 static SkColor EvictedTileCheckerboardColor(); | 65 static SkColor EvictedTileCheckerboardColor(); |
| 67 static SkColor InvalidatedTileCheckerboardColor(); | 66 static SkColor InvalidatedTileCheckerboardColor(); |
| 68 | 67 |
| 69 static const int kFadeSteps = 50; | 68 static const int kFadeSteps = 50; |
| 70 static SkColor PaintRectBorderColor(int step); | 69 static SkColor PaintRectBorderColor(int step); |
| 71 static int PaintRectBorderWidth(); | 70 static int PaintRectBorderWidth(); |
| 72 static SkColor PaintRectFillColor(int step); | 71 static SkColor PaintRectFillColor(int step); |
| 73 | 72 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 static SkColor MemoryDisplayTextColor(); | 120 static SkColor MemoryDisplayTextColor(); |
| 122 static SkColor PaintTimeDisplayTextAndGraphColor(); | 121 static SkColor PaintTimeDisplayTextAndGraphColor(); |
| 123 | 122 |
| 124 private: | 123 private: |
| 125 DISALLOW_IMPLICIT_CONSTRUCTORS(DebugColors); | 124 DISALLOW_IMPLICIT_CONSTRUCTORS(DebugColors); |
| 126 }; | 125 }; |
| 127 | 126 |
| 128 } // namespace cc | 127 } // namespace cc |
| 129 | 128 |
| 130 #endif // CC_DEBUG_DEBUG_COLORS_H_ | 129 #endif // CC_DEBUG_DEBUG_COLORS_H_ |
| OLD | NEW |