| Index: cc/layer_impl.h
|
| diff --git a/cc/layer_impl.h b/cc/layer_impl.h
|
| index 76a3e38daf3bdd7904a73259bb210c356d077ce7..e155e49fdf6bcd28c88d3120505e5d17d5eeb7ee 100644
|
| --- a/cc/layer_impl.h
|
| +++ b/cc/layer_impl.h
|
| @@ -42,9 +42,9 @@ class CC_EXPORT LayerImpl {
|
| public:
|
| typedef ScopedPtrVector<LayerImpl> LayerList;
|
|
|
| - static scoped_ptr<LayerImpl> create(int id)
|
| + static scoped_ptr<LayerImpl> create(LayerTreeHostImpl* hostImpl, int id)
|
| {
|
| - return make_scoped_ptr(new LayerImpl(id));
|
| + return make_scoped_ptr(new LayerImpl(hostImpl, id));
|
| }
|
|
|
| virtual ~LayerImpl();
|
| @@ -72,7 +72,6 @@ public:
|
| bool replicaHasMask() const { return m_replicaLayer && (m_maskLayer || m_replicaLayer->m_maskLayer); }
|
|
|
| LayerTreeHostImpl* layerTreeHostImpl() const { return m_layerTreeHostImpl; }
|
| - void setLayerTreeHostImpl(LayerTreeHostImpl* hostImpl);
|
|
|
| scoped_ptr<SharedQuadState> createSharedQuadState() const;
|
| // willDraw must be called before appendQuads. If willDraw is called,
|
| @@ -276,7 +275,7 @@ public:
|
| gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const;
|
|
|
| protected:
|
| - explicit LayerImpl(int);
|
| + LayerImpl(LayerTreeHostImpl* hostImpl, int);
|
|
|
| // Get the color and size of the layer's debug border.
|
| virtual void getDebugBorderProperties(SkColor*, float* width) const;
|
|
|