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_; |
+ |
LayerDelegate* delegate_; |
scoped_ptr<LayerAnimator> animator_; |