Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3937)

Unified Diff: cc/test/fake_content_layer_impl.h

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/data/yuv_stripes_offset.png ('k') | cc/test/fake_content_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
};
« no previous file with comments | « cc/test/data/yuv_stripes_offset.png ('k') | cc/test/fake_content_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698