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

Unified Diff: cc/trees/layer_tree_host_unittest.cc

Issue 2270273002: cc : Add OnFilterAnimated to effect tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 4 years, 4 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/trees/layer_tree_host_impl.cc ('k') | cc/trees/property_tree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest.cc
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
index 1192298ee50ab656fa0063151febf7fa735c0df8..363e8e2e204d22348fbae5554081a2b8ade4d013 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -983,7 +983,8 @@ class LayerTreeHostTestPropertyTreesChangedSync : public LayerTreeHostTest {
->LayerById(child_->id())
->LayerPropertyChanged());
filters.Append(FilterOperation::CreateOpacityFilter(0.5f));
- root->OnFilterAnimated(filters);
+ impl->active_tree()->property_trees()->effect_tree.OnFilterAnimated(
+ filters, root->effect_tree_index(), impl->active_tree());
PostSetNeedsCommitToMainThread();
break;
case END:
@@ -1077,7 +1078,8 @@ class LayerTreeHostTestEffectTreeSync : public LayerTreeHostTest {
break;
case 4:
EXPECT_EQ(node->opacity, 0.25f);
- root->OnFilterAnimated(brightness_filter_);
+ impl->sync_tree()->property_trees()->effect_tree.OnFilterAnimated(
+ brightness_filter_, root->effect_tree_index(), impl->sync_tree());
PostSetNeedsCommitToMainThread();
break;
case 5:
@@ -1086,7 +1088,8 @@ class LayerTreeHostTestEffectTreeSync : public LayerTreeHostTest {
break;
case 6:
EXPECT_EQ(node->filters, brightness_filter_);
- root->OnFilterAnimated(brightness_filter_);
+ impl->sync_tree()->property_trees()->effect_tree.OnFilterAnimated(
+ brightness_filter_, root->effect_tree_index(), impl->sync_tree());
PostSetNeedsCommitToMainThread();
break;
case 7:
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/property_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698