Chromium Code Reviews| Index: cc/layers/layer.h |
| diff --git a/cc/layers/layer.h b/cc/layers/layer.h |
| index 035e071a5fd19a69849d8a097125c4a3817c193f..d77923882c1d8f892bc341a8f8dd223a028c73e4 100644 |
| --- a/cc/layers/layer.h |
| +++ b/cc/layers/layer.h |
| @@ -38,6 +38,7 @@ struct AnimationEvent; |
| class CopyOutputRequest; |
| class LayerAnimationDelegate; |
| class LayerAnimationEventObserver; |
| +class LayerClient; |
| class LayerImpl; |
| class LayerTreeHost; |
| class LayerTreeImpl; |
| @@ -293,6 +294,10 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>, |
| virtual void ReduceMemoryUsage() {} |
| void SetDebugName(const std::string& debug_name); |
|
enne (OOO)
2013/08/02 17:58:17
Can you remove SetDebugName?
qiankun
2013/08/05 06:54:15
Done.
|
| + virtual std::string DebugName(); |
| + |
| + void SetLayerClient(LayerClient* client) { client_ = client; } |
| + |
| void SetCompositingReasons(CompositingReasons reasons); |
| virtual void PushPropertiesTo(LayerImpl* layer); |
| @@ -514,6 +519,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_; |