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

Unified Diff: cc/debug_colors.h

Issue 11316026: cc: Create cc::DebugColors class to hold all the debugging color/width constants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/cc.gyp ('k') | cc/debug_colors.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug_colors.h
diff --git a/cc/debug_colors.h b/cc/debug_colors.h
new file mode 100644
index 0000000000000000000000000000000000000000..75a616773daa804d09e05ac6fa495a5b52288835
--- /dev/null
+++ b/cc/debug_colors.h
@@ -0,0 +1,52 @@
+// Copyright 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_DEBUG_COLORS_H_
+#define CC_DEBUG_COLORS_H_
+
+#include "base/basictypes.h"
+#include "third_party/skia/include/core/SkColor.h"
+
+namespace cc {
+
+class LayerTreeHostImpl;
+
+class DebugColors {
+ public:
+ static SkColor TiledContentLayerBorderColor();
+ static int TiledContentLayerBorderWidth(const LayerTreeHostImpl* host_impl);
+
+ static SkColor ContentLayerBorderColor();
+ static int ContentLayerBorderWidth(const LayerTreeHostImpl* host_impl);
+
+ static SkColor MaskingLayerBorderColor();
+ static int MaskingLayerBorderWidth(const LayerTreeHostImpl* host_impl);
+
+ static SkColor ContainerLayerBorderColor();
+ static int ContainerLayerBorderWidth(const LayerTreeHostImpl* host_impl);
+
+ static SkColor SurfaceBorderColor();
+ static int SurfaceBorderWidth(const LayerTreeHostImpl* host_impl);
+
+ static SkColor SurfaceReplicaBorderColor();
+ static int SurfaceReplicaBorderWidth(const LayerTreeHostImpl* host_impl);
+
+ static SkColor TileBorderColor();
+ static int TileBorderWidth(const LayerTreeHostImpl* host_impl);
+
+ static SkColor MissingTileBorderColor();
+ static int MissingTileBorderWidth(const LayerTreeHostImpl* host_impl);
+
+ static SkColor CulledTileBorderColor();
+ static int CulledTileBorderWidth(const LayerTreeHostImpl* host_impl);
+
+ static SkColor EvictedTileCheckerboardColor();
+ static SkColor InvalidatedTileCheckerboardColor();
+
+ DISALLOW_IMPLICIT_CONSTRUCTORS(DebugColors);
+};
+
+} // namespace cc
+
+#endif // CC_DEBUG_COLORS_H_
« no previous file with comments | « cc/cc.gyp ('k') | cc/debug_colors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698