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

Unified Diff: cc/test/fake_content_layer_impl.cc

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/fake_content_layer_impl.h ('k') | cc/test/fake_delegated_renderer_layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_content_layer_impl.cc
diff --git a/cc/test/fake_content_layer_impl.cc b/cc/test/fake_content_layer_impl.cc
index eb35bb6aacbaf0040b019199fa87cb4cd604a295..54c62d01adefb633b732bf538655cb8188924ecc 100644
--- a/cc/test/fake_content_layer_impl.cc
+++ b/cc/test/fake_content_layer_impl.cc
@@ -6,15 +6,19 @@
namespace cc {
-FakeContentLayerImpl::FakeContentLayerImpl(LayerTreeImpl* tree_impl, int id)
- : TiledLayerImpl(tree_impl, id), lost_output_surface_count_(0) {
+FakeContentLayerImpl::FakeContentLayerImpl(
+ LayerTreeImpl* tree_impl,
+ int id,
+ scoped_refptr<LayerImpl::SyncedScrollOffset> synced_scroll_offset)
+ : TiledLayerImpl(tree_impl, id, synced_scroll_offset),
+ lost_output_surface_count_(0) {
}
FakeContentLayerImpl::~FakeContentLayerImpl() {}
scoped_ptr<LayerImpl> FakeContentLayerImpl::CreateLayerImpl(
LayerTreeImpl* tree_impl) {
- return FakeContentLayerImpl::Create(tree_impl, id());
+ return FakeContentLayerImpl::Create(tree_impl, id(), synced_scroll_offset());
}
bool FakeContentLayerImpl::HaveResourceForTileAt(int i, int j) {
« no previous file with comments | « cc/test/fake_content_layer_impl.h ('k') | cc/test/fake_delegated_renderer_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698