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

Unified Diff: cc/test/fake_layer_tree_host.cc

Issue 1823773003: CC Animation: Add perf tests for AnimationHost with AnimationTimelines (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rework. Created 4 years, 9 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/animation/animation_host_perftest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 84c21751bfaeb4e4d0b2353a718bc50a5d3cdc36..1774f348a44854c27c42041a6cae792ee1fa50c3 100644
--- a/cc/test/fake_layer_tree_host.cc
+++ b/cc/test/fake_layer_tree_host.cc
@@ -4,6 +4,7 @@
#include "cc/test/fake_layer_tree_host.h"
+#include "cc/animation/animation_host.h"
#include "cc/layers/layer.h"
#include "cc/test/fake_image_serialization_processor.h"
#include "cc/test/test_task_graph_runner.h"
@@ -85,6 +86,7 @@ LayerImpl* FakeLayerTreeHost::CommitAndCreateLayerImplTree() {
active_tree()->SetPropertyTrees(*property_trees());
TreeSynchronizer::PushLayerProperties(root_layer()->layer_tree_host(),
active_tree());
+ animation_host()->PushPropertiesTo(host_impl_.animation_host());
active_tree()->UpdatePropertyTreeScrollOffset(property_trees());
@@ -106,6 +108,8 @@ LayerImpl* FakeLayerTreeHost::CommitAndCreatePendingTree() {
pending_tree()->SetPropertyTrees(*property_trees());
TreeSynchronizer::PushLayerProperties(root_layer()->layer_tree_host(),
pending_tree());
+ animation_host()->PushPropertiesTo(host_impl_.animation_host());
+
pending_tree()->UpdatePropertyTreeScrollOffset(property_trees());
return pending_tree()->root_layer();
}
« no previous file with comments | « cc/animation/animation_host_perftest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698