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

Unified Diff: ui/gfx/compositor/layer.h

Issue 8508009: Debugging code to print layer tree (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes as requested Created 9 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
Index: ui/gfx/compositor/layer.h
diff --git a/ui/gfx/compositor/layer.h b/ui/gfx/compositor/layer.h
index cde70e9f8054fb76f3fcd3c8610e5f99b2de0216..930e0af918f16e9294216b59347d8edbebde35a4 100644
--- a/ui/gfx/compositor/layer.h
+++ b/ui/gfx/compositor/layer.h
@@ -6,6 +6,7 @@
#define UI_GFX_COMPOSITOR_LAYER_H_
#pragma once
+#include <string>
#include <vector>
#include "base/compiler_specific.h"
@@ -152,6 +153,9 @@ class COMPOSITOR_EXPORT Layer :
const gfx::Rect& hole_rect() const { return hole_rect_; }
+ const std::string& name() const { return name_; }
+ void set_name(const std::string& name) { name_ = name; }
+
// The compositor.
const Compositor* compositor() const { return compositor_; }
Compositor* compositor() { return compositor_; }
@@ -302,6 +306,8 @@ class COMPOSITOR_EXPORT Layer :
float opacity_;
+ std::string name_;
tfarina 2011/11/11 18:46:28 nit: add doc?
+
LayerDelegate* delegate_;
scoped_ptr<LayerAnimator> animator_;

Powered by Google App Engine
This is Rietveld 408576698