| Index: cc/layers/painted_scrollbar_layer.h
|
| diff --git a/cc/layers/painted_scrollbar_layer.h b/cc/layers/painted_scrollbar_layer.h
|
| index 606ad69b9056f8a88e223dbe8effc19955053d53..f1264c981d09178c2cc10a78ad157c1a9f6f283a 100644
|
| --- a/cc/layers/painted_scrollbar_layer.h
|
| +++ b/cc/layers/painted_scrollbar_layer.h
|
| @@ -24,14 +24,15 @@ class CC_EXPORT PaintedScrollbarLayer : public ScrollbarLayerInterface,
|
|
|
| static scoped_refptr<PaintedScrollbarLayer> Create(
|
| scoped_ptr<Scrollbar> scrollbar,
|
| - int scroll_layer_id);
|
| + Layer* scroll_layer);
|
|
|
| virtual bool OpacityCanAnimateOnImplThread() const OVERRIDE;
|
| virtual ScrollbarLayerInterface* ToScrollbarLayer() OVERRIDE;
|
|
|
| // ScrollbarLayerInterface
|
| virtual int ScrollLayerId() const OVERRIDE;
|
| - virtual void SetScrollLayerId(int id) OVERRIDE;
|
| + virtual void SetScrollLayer(scoped_refptr<Layer> layer) OVERRIDE;
|
| + virtual void SetClipLayer(scoped_refptr<Layer> layer) OVERRIDE;
|
|
|
| virtual ScrollbarOrientation orientation() const OVERRIDE;
|
|
|
| @@ -49,7 +50,7 @@ class CC_EXPORT PaintedScrollbarLayer : public ScrollbarLayerInterface,
|
| gfx::Size* content_bounds) OVERRIDE;
|
|
|
| protected:
|
| - PaintedScrollbarLayer(scoped_ptr<Scrollbar> scrollbar, int scroll_layer_id);
|
| + PaintedScrollbarLayer(scoped_ptr<Scrollbar> scrollbar, Layer* scroll_layer);
|
| virtual ~PaintedScrollbarLayer();
|
|
|
| // For unit tests
|
| @@ -79,7 +80,8 @@ class CC_EXPORT PaintedScrollbarLayer : public ScrollbarLayerInterface,
|
| ScrollbarPart part);
|
|
|
| scoped_ptr<Scrollbar> scrollbar_;
|
| - int scroll_layer_id_;
|
| + scoped_refptr<Layer> scroll_layer_;
|
| + scoped_refptr<Layer> clip_layer_;
|
|
|
| // Snapshot of properties taken in UpdateThumbAndTrackGeometry and used in
|
| // PushPropertiesTo.
|
|
|