Index: cc/layers/painted_scrollbar_layer.h |
diff --git a/cc/layers/painted_scrollbar_layer.h b/cc/layers/painted_scrollbar_layer.h |
index 0b844513666f22966db2a1eeb11e0f417ebf0fa4..c24c0aa70e329fd3892ac466ee3771f424a0b5b1 100644 |
--- a/cc/layers/painted_scrollbar_layer.h |
+++ b/cc/layers/painted_scrollbar_layer.h |
@@ -24,15 +24,14 @@ |
static scoped_refptr<PaintedScrollbarLayer> Create( |
scoped_ptr<Scrollbar> scrollbar, |
- Layer* scroll_layer); |
+ int scroll_layer_id); |
virtual bool OpacityCanAnimateOnImplThread() const OVERRIDE; |
virtual ScrollbarLayerInterface* ToScrollbarLayer() OVERRIDE; |
// ScrollbarLayerInterface |
virtual int ScrollLayerId() const OVERRIDE; |
- virtual void SetScrollLayer(scoped_refptr<Layer> layer) OVERRIDE; |
- virtual void SetClipLayer(scoped_refptr<Layer> layer) OVERRIDE; |
+ virtual void SetScrollLayerId(int id) OVERRIDE; |
virtual ScrollbarOrientation orientation() const OVERRIDE; |
@@ -41,7 +40,6 @@ |
const OcclusionTracker* occlusion) OVERRIDE; |
virtual void SetLayerTreeHost(LayerTreeHost* host) OVERRIDE; |
virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; |
- virtual void PushScrollClipPropertiesTo(LayerImpl* layer) OVERRIDE; |
virtual void CalculateContentsScale(float ideal_contents_scale, |
float device_scale_factor, |
float page_scale_factor, |
@@ -51,7 +49,7 @@ |
gfx::Size* content_bounds) OVERRIDE; |
protected: |
- PaintedScrollbarLayer(scoped_ptr<Scrollbar> scrollbar, Layer* scroll_layer); |
+ PaintedScrollbarLayer(scoped_ptr<Scrollbar> scrollbar, int scroll_layer_id); |
virtual ~PaintedScrollbarLayer(); |
// For unit tests |
@@ -81,8 +79,7 @@ |
ScrollbarPart part); |
scoped_ptr<Scrollbar> scrollbar_; |
- scoped_refptr<Layer> scroll_layer_; |
- scoped_refptr<Layer> clip_layer_; |
+ int scroll_layer_id_; |
// Snapshot of properties taken in UpdateThumbAndTrackGeometry and used in |
// PushPropertiesTo. |