Home | History | Annotate | Download | only in debug
      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 
     11 namespace cc {
     12 
     13 class LayerTreeImpl;
     14 
     15 class 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 SurfaceBorderColor();
     33   static int SurfaceBorderWidth(const LayerTreeImpl* tree_impl);
     34 
     35   static SkColor SurfaceReplicaBorderColor();
     36   static int SurfaceReplicaBorderWidth(const LayerTreeImpl* tree_impl);
     37 
     38   static SkColor HighResTileBorderColor();
     39   static int HighResTileBorderWidth(const LayerTreeImpl* tree_impl);
     40 
     41   static SkColor LowResTileBorderColor();
     42   static int LowResTileBorderWidth(const LayerTreeImpl* tree_impl);
     43 
     44   static SkColor ExtraHighResTileBorderColor();
     45   static int ExtraHighResTileBorderWidth(const LayerTreeImpl* tree_impl);
     46 
     47   static SkColor ExtraLowResTileBorderColor();
     48   static int ExtraLowResTileBorderWidth(const LayerTreeImpl* tree_impl);
     49 
     50   static SkColor MissingTileBorderColor();
     51   static int MissingTileBorderWidth(const LayerTreeImpl* tree_impl);
     52 
     53   static SkColor CulledTileBorderColor();
     54   static int CulledTileBorderWidth(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 SkColor PaintRectBorderColor();
     70   static int PaintRectBorderWidth();
     71   static SkColor PaintRectFillColor();
     72 
     73   static SkColor PropertyChangedRectBorderColor();
     74   static int PropertyChangedRectBorderWidth();
     75   static SkColor PropertyChangedRectFillColor();
     76 
     77   static SkColor SurfaceDamageRectBorderColor();
     78   static int SurfaceDamageRectBorderWidth();
     79   static SkColor SurfaceDamageRectFillColor();
     80 
     81   static SkColor ScreenSpaceLayerRectBorderColor();
     82   static int ScreenSpaceLayerRectBorderWidth();
     83   static SkColor ScreenSpaceLayerRectFillColor();
     84 
     85   static SkColor ScreenSpaceSurfaceReplicaRectBorderColor();
     86   static int ScreenSpaceSurfaceReplicaRectBorderWidth();
     87   static SkColor ScreenSpaceSurfaceReplicaRectFillColor();
     88 
     89   static SkColor OccludingRectBorderColor();
     90   static int OccludingRectBorderWidth();
     91   static SkColor OccludingRectFillColor();
     92 
     93   static SkColor NonOccludingRectBorderColor();
     94   static int NonOccludingRectBorderWidth();
     95   static SkColor NonOccludingRectFillColor();
     96 
     97   static SkColor TouchEventHandlerRectBorderColor();
     98   static int TouchEventHandlerRectBorderWidth();
     99   static SkColor TouchEventHandlerRectFillColor();
    100 
    101   static SkColor WheelEventHandlerRectBorderColor();
    102   static int WheelEventHandlerRectBorderWidth();
    103   static SkColor WheelEventHandlerRectFillColor();
    104 
    105   static SkColor NonFastScrollableRectBorderColor();
    106   static int NonFastScrollableRectBorderWidth();
    107   static SkColor NonFastScrollableRectFillColor();
    108 
    109   static SkColor NonPaintedFillColor();
    110   static SkColor MissingPictureFillColor();
    111   static SkColor PictureBorderColor();
    112 
    113   static SkColor HUDBackgroundColor();
    114   static SkColor HUDSeparatorLineColor();
    115   static SkColor HUDIndicatorLineColor();
    116 
    117   static SkColor PlatformLayerTreeTextColor();
    118   static SkColor FPSDisplayTextAndGraphColor();
    119   static SkColor MemoryDisplayTextColor();
    120   static SkColor PaintTimeDisplayTextAndGraphColor();
    121 
    122  private:
    123   DISALLOW_IMPLICIT_CONSTRUCTORS(DebugColors);
    124 };
    125 
    126 }  // namespace cc
    127 
    128 #endif  // CC_DEBUG_DEBUG_COLORS_H_
    129