Index: cc/layers/picture_layer_impl.cc |
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc |
index 49e4d1f93226c2f3b7f95dad7f707d4cb4e829f4..1e30c48f0b92acf1e59ea0a1cdd173390c2640ac 100644 |
--- a/cc/layers/picture_layer_impl.cc |
+++ b/cc/layers/picture_layer_impl.cc |
@@ -64,10 +64,12 @@ PictureLayerImpl::Pair::Pair(PictureLayerImpl* active_layer, |
PictureLayerImpl::Pair::~Pair() { |
} |
-PictureLayerImpl::PictureLayerImpl(LayerTreeImpl* tree_impl, |
- int id, |
- bool is_mask) |
- : LayerImpl(tree_impl, id), |
+PictureLayerImpl::PictureLayerImpl( |
+ LayerTreeImpl* tree_impl, |
+ int id, |
+ bool is_mask, |
+ scoped_refptr<SyncedScrollOffset> scroll_offset) |
+ : LayerImpl(tree_impl, id, scroll_offset), |
twin_layer_(nullptr), |
tilings_(CreatePictureLayerTilingSet()), |
ideal_page_scale_(0.f), |
@@ -118,7 +120,7 @@ const char* PictureLayerImpl::LayerTypeAsString() const { |
scoped_ptr<LayerImpl> PictureLayerImpl::CreateLayerImpl( |
LayerTreeImpl* tree_impl) { |
- return PictureLayerImpl::Create(tree_impl, id(), is_mask_); |
+ return PictureLayerImpl::Create(tree_impl, id(), is_mask_, scroll_offset()); |
} |
void PictureLayerImpl::PushPropertiesTo(LayerImpl* base_layer) { |