Index: cc/test/fake_content_layer_impl.h |
diff --git a/cc/test/fake_content_layer_impl.h b/cc/test/fake_content_layer_impl.h |
index 8a6c90bf81ca6259e1b8d4b65cd06ef0fb014e3e..d199fad9bac20c60875109492b31e48907b06aaf 100644 |
--- a/cc/test/fake_content_layer_impl.h |
+++ b/cc/test/fake_content_layer_impl.h |
@@ -14,7 +14,15 @@ class FakeContentLayerImpl : public TiledLayerImpl { |
public: |
static scoped_ptr<FakeContentLayerImpl> Create( |
LayerTreeImpl* tree_impl, int id) { |
- return make_scoped_ptr(new FakeContentLayerImpl(tree_impl, id)); |
+ return make_scoped_ptr(new FakeContentLayerImpl( |
+ tree_impl, id, new LayerImpl::SyncedScrollOffset)); |
+ } |
+ static scoped_ptr<FakeContentLayerImpl> Create( |
+ LayerTreeImpl* tree_impl, |
+ int id, |
+ scoped_refptr<LayerImpl::SyncedScrollOffset> synced_scroll_offset) { |
+ return make_scoped_ptr( |
+ new FakeContentLayerImpl(tree_impl, id, synced_scroll_offset)); |
} |
~FakeContentLayerImpl() override; |
@@ -30,7 +38,10 @@ class FakeContentLayerImpl : public TiledLayerImpl { |
void ReleaseResources() override; |
private: |
- explicit FakeContentLayerImpl(LayerTreeImpl* tree_impl, int id); |
+ explicit FakeContentLayerImpl( |
+ LayerTreeImpl* tree_impl, |
+ int id, |
+ scoped_refptr<LayerImpl::SyncedScrollOffset> synced_scroll_offset); |
size_t lost_output_surface_count_; |
}; |