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

Unified Diff: cc/test/fake_layer_tree_host.cc

Issue 1950243005: Communicate MT changes to impl-only scroll offset animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments Created 4 years, 7 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
Index: cc/test/fake_layer_tree_host.cc
diff --git a/cc/test/fake_layer_tree_host.cc b/cc/test/fake_layer_tree_host.cc
index 2319f958937aee460b0a69357bea1bbdf003cc8d..71ac4780af9bdf135891873bda55926d78c44f81 100644
--- a/cc/test/fake_layer_tree_host.cc
+++ b/cc/test/fake_layer_tree_host.cc
@@ -87,7 +87,9 @@ LayerImpl* FakeLayerTreeHost::CommitAndCreateLayerImplTree() {
active_tree()->SetPropertyTrees(*property_trees());
TreeSynchronizer::PushLayerProperties(root_layer()->layer_tree_host(),
active_tree());
- animation_host()->PushPropertiesTo(host_impl_.animation_host());
+ animation_host()->PushPropertiesTo(
+ host_impl_.animation_host(),
+ host_impl_.CurrentBeginFrameArgs().frame_time);
active_tree()->UpdatePropertyTreeScrollOffset(property_trees());
@@ -109,7 +111,9 @@ LayerImpl* FakeLayerTreeHost::CommitAndCreatePendingTree() {
pending_tree()->SetPropertyTrees(*property_trees());
TreeSynchronizer::PushLayerProperties(root_layer()->layer_tree_host(),
pending_tree());
- animation_host()->PushPropertiesTo(host_impl_.animation_host());
+ animation_host()->PushPropertiesTo(
+ host_impl_.animation_host(),
+ host_impl_.CurrentBeginFrameArgs().frame_time);
pending_tree()->UpdatePropertyTreeScrollOffset(property_trees());
return pending_tree()->root_layer();

Powered by Google App Engine
This is Rietveld 408576698