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

Unified Diff: cc/layers/render_surface_unittest.cc

Issue 2762123004: cc: LayerTreeHostImpl uses element id to tick animations (Closed)
Patch Set: review comments Created 3 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
Index: cc/layers/render_surface_unittest.cc
diff --git a/cc/layers/render_surface_unittest.cc b/cc/layers/render_surface_unittest.cc
index 281a6d56ca3b1f588dd75240f7ec18b97fe5fa5d..a8662d8aab00c5bfe77619ce15daaef70e9f5df7 100644
--- a/cc/layers/render_surface_unittest.cc
+++ b/cc/layers/render_surface_unittest.cc
@@ -62,10 +62,8 @@ TEST(RenderSurfaceTest, VerifySurfaceChangesAreTrackedProperly) {
EXECUTE_AND_VERIFY_SURFACE_CHANGED(
render_surface->SetContentRectForTesting(test_rect));
- host_impl.active_tree()->property_trees()->effect_tree.OnOpacityAnimated(
- 0.5f,
- host_impl.active_tree()->root_layer_for_testing()->effect_tree_index(),
- host_impl.active_tree());
+ host_impl.active_tree()->SetOpacityMutated(
+ host_impl.active_tree()->root_layer_for_testing()->element_id(), 0.5f);
EXPECT_TRUE(render_surface->SurfacePropertyChanged());
host_impl.active_tree()->ResetAllChangeTracking();

Powered by Google App Engine
This is Rietveld 408576698