| Index: cc/layers/layer.h
|
| diff --git a/cc/layers/layer.h b/cc/layers/layer.h
|
| index 035e071a5fd19a69849d8a097125c4a3817c193f..69b14b480e7252a1b0a9330307fe112aec7002a8 100644
|
| --- a/cc/layers/layer.h
|
| +++ b/cc/layers/layer.h
|
| @@ -47,6 +47,13 @@ class ResourceUpdateQueue;
|
| class ScrollbarLayer;
|
| struct AnimationEvent;
|
|
|
| +class CC_EXPORT LayerClient {
|
| + public:
|
| + virtual std::string DebugName() = 0;
|
| + protected:
|
| + virtual ~LayerClient() {}
|
| +};
|
| +
|
| // Base class for composited layers. Special layer types are derived from
|
| // this class.
|
| class CC_EXPORT Layer : public base::RefCounted<Layer>,
|
| @@ -293,6 +300,10 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
|
| virtual void ReduceMemoryUsage() {}
|
|
|
| void SetDebugName(const std::string& debug_name);
|
| + virtual std::string DebugName();
|
| +
|
| + void SetLayerClient(LayerClient* client) { client_ = client; }
|
| +
|
| void SetCompositingReasons(CompositingReasons reasons);
|
|
|
| virtual void PushPropertiesTo(LayerImpl* layer);
|
| @@ -514,6 +525,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
|
| // Transient properties.
|
| float raster_scale_;
|
|
|
| + LayerClient* client_;
|
| +
|
| ScopedPtrVector<CopyOutputRequest> copy_requests_;
|
|
|
| base::Closure did_scroll_callback_;
|
|
|