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

Unified Diff: cc/trees/layer_tree_host_unittest_picture.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/trees/layer_tree_host_unittest_picture.cc
diff --git a/cc/trees/layer_tree_host_unittest_picture.cc b/cc/trees/layer_tree_host_unittest_picture.cc
index cbdd64173b992ac97242a338b057a72620366e81..ec3d99d6210d3fc7bd7d294eecc70eb096e77844 100644
--- a/cc/trees/layer_tree_host_unittest_picture.cc
+++ b/cc/trees/layer_tree_host_unittest_picture.cc
@@ -250,11 +250,8 @@ class LayerTreeHostPictureTestChangeLiveTilesRectWithRecycleTree
// Make the bottom of the layer visible.
gfx::Transform transform;
transform.Translate(0.f, -100000.f + 100.f);
- impl->active_tree()
- ->property_trees()
- ->transform_tree.OnTransformAnimated(
- transform, picture_impl->transform_tree_index(),
- impl->active_tree());
+ impl->active_tree()->SetTransformMutated(picture_impl->element_id(),
+ transform);
impl->SetNeedsRedraw();
break;
}
@@ -265,11 +262,8 @@ class LayerTreeHostPictureTestChangeLiveTilesRectWithRecycleTree
EXPECT_FALSE(tiling->TileAt(0, 0));
// Make the top of the layer visible again.
- impl->active_tree()
- ->property_trees()
- ->transform_tree.OnTransformAnimated(
- gfx::Transform(), picture_impl->transform_tree_index(),
- impl->active_tree());
+ impl->active_tree()->SetTransformMutated(picture_impl->element_id(),
+ gfx::Transform());
impl->SetNeedsRedraw();
break;
}

Powered by Google App Engine
This is Rietveld 408576698