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

Unified Diff: cc/trees/damage_tracker_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/layers/layer_impl_unittest.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/damage_tracker_unittest.cc
diff --git a/cc/trees/damage_tracker_unittest.cc b/cc/trees/damage_tracker_unittest.cc
index 291a474b2984a7d95f69d8a8a82ab43bc4be5df6..fc67b7d3904d965629ad5a9fe7f368f1bdd2e645 100644
--- a/cc/trees/damage_tracker_unittest.cc
+++ b/cc/trees/damage_tracker_unittest.cc
@@ -582,7 +582,8 @@ TEST_F(DamageTrackerTest, VerifyDamageForImageFilter) {
child->test_properties()->force_render_surface = true;
root->layer_tree_impl()->property_trees()->needs_rebuild = true;
EmulateDrawingOneFrame(root);
- child->OnFilterAnimated(filters);
+ child->layer_tree_impl()->property_trees()->effect_tree.OnFilterAnimated(
+ filters, child->effect_tree_index(), child->layer_tree_impl());
EmulateDrawingOneFrame(root);
root_damage_rect =
root->render_surface()->damage_tracker()->current_damage_rect();
@@ -632,7 +633,8 @@ TEST_F(DamageTrackerTest, VerifyDamageForTransformedImageFilter) {
child->test_properties()->transform = transform;
root->layer_tree_impl()->property_trees()->needs_rebuild = true;
EmulateDrawingOneFrame(root);
- child->OnFilterAnimated(filters);
+ child->layer_tree_impl()->property_trees()->effect_tree.OnFilterAnimated(
+ filters, child->effect_tree_index(), child->layer_tree_impl());
EmulateDrawingOneFrame(root);
root_damage_rect =
root->render_surface()->damage_tracker()->current_damage_rect();
@@ -687,7 +689,8 @@ TEST_F(DamageTrackerTest, VerifyDamageForHighDPIImageFilter) {
root->layer_tree_impl()->property_trees()->needs_rebuild = true;
int device_scale_factor = 2;
EmulateDrawingOneFrame(root, device_scale_factor);
- child->OnFilterAnimated(filters);
+ child->layer_tree_impl()->property_trees()->effect_tree.OnFilterAnimated(
+ filters, child->effect_tree_index(), child->layer_tree_impl());
EmulateDrawingOneFrame(root, device_scale_factor);
root_damage_rect =
root->render_surface()->damage_tracker()->current_damage_rect();
« no previous file with comments | « cc/layers/layer_impl_unittest.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698