summaryrefslogtreecommitdiffstats
path: root/cc/debug
diff options
context:
space:
mode:
authorjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-17 23:17:04 +0000
committerjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-17 23:17:04 +0000
commitc1ae8294796a5d763d9947cee9e55f44412c3f37 (patch)
tree849a09a60693ceb3a52904be5741a162566802f3 /cc/debug
parent23073f97dbd9aceb329f9994ee312650efe797af (diff)
downloadchromium_src-c1ae8294796a5d763d9947cee9e55f44412c3f37.zip
chromium_src-c1ae8294796a5d763d9947cee9e55f44412c3f37.tar.gz
chromium_src-c1ae8294796a5d763d9947cee9e55f44412c3f37.tar.bz2
Add cc::SurfaceLayer for referencing external surfaces
This adds a layer type that references an external surface. We'll probably want to add some more data on a surface layer such as synchronization points sometime in the future. BUG=334090 Review URL: https://codereview.chromium.org/132593004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245650 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/debug')
-rw-r--r--cc/debug/debug_colors.cc8
-rw-r--r--cc/debug/debug_colors.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/cc/debug/debug_colors.cc b/cc/debug/debug_colors.cc
index 9fee755..4e3f32e 100644
--- a/cc/debug/debug_colors.cc
+++ b/cc/debug/debug_colors.cc
@@ -54,6 +54,14 @@ int DebugColors::ContainerLayerBorderWidth(const LayerTreeImpl* tree_impl) {
return Scale(2, tree_impl);
}
+// Surface layers are a blue-ish green.
+SkColor DebugColors::SurfaceLayerBorderColor() {
+ return SkColorSetARGB(128, 0, 255, 136);
+}
+int DebugColors::SurfaceLayerBorderWidth(const LayerTreeImpl* tree_impl) {
+ return Scale(2, tree_impl);
+}
+
// Render surfaces are blue.
SkColor DebugColors::SurfaceBorderColor() {
return SkColorSetARGB(100, 0, 0, 255);
diff --git a/cc/debug/debug_colors.h b/cc/debug/debug_colors.h
index 9edfb37..2c35c4a 100644
--- a/cc/debug/debug_colors.h
+++ b/cc/debug/debug_colors.h
@@ -29,6 +29,9 @@ class DebugColors {
static SkColor ContainerLayerBorderColor();
static int ContainerLayerBorderWidth(const LayerTreeImpl* tree_impl);
+ static SkColor SurfaceLayerBorderColor();
+ static int SurfaceLayerBorderWidth(const LayerTreeImpl* tree_impl);
+
static SkColor SurfaceBorderColor();
static int SurfaceBorderWidth(const LayerTreeImpl* tree_impl);