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

Unified Diff: cc/trees/layer_tree_host_unittest_picture.cc

Issue 2269143003: cc : Add OnTransformAnimated to transform tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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_unittest.cc ('k') | cc/trees/layer_tree_impl.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_picture.cc
diff --git a/cc/trees/layer_tree_host_unittest_picture.cc b/cc/trees/layer_tree_host_unittest_picture.cc
index 9246fa16b873b9f04e855cee5d55a2f314b00865..3049749055b0f38b0f4c948eacd7211c0441e30f 100644
--- a/cc/trees/layer_tree_host_unittest_picture.cc
+++ b/cc/trees/layer_tree_host_unittest_picture.cc
@@ -250,7 +250,11 @@ class LayerTreeHostPictureTestChangeLiveTilesRectWithRecycleTree
// Make the bottom of the layer visible.
gfx::Transform transform;
transform.Translate(0.f, -100000.f + 100.f);
- picture_impl->OnTransformAnimated(transform);
+ impl->active_tree()
+ ->property_trees()
+ ->transform_tree.OnTransformAnimated(
+ transform, picture_impl->transform_tree_index(),
+ impl->active_tree());
impl->SetNeedsRedraw();
break;
}
@@ -261,7 +265,11 @@ class LayerTreeHostPictureTestChangeLiveTilesRectWithRecycleTree
EXPECT_FALSE(tiling->TileAt(0, 0));
// Make the top of the layer visible again.
- picture_impl->OnTransformAnimated(gfx::Transform());
+ impl->active_tree()
+ ->property_trees()
+ ->transform_tree.OnTransformAnimated(
+ gfx::Transform(), picture_impl->transform_tree_index(),
+ impl->active_tree());
impl->SetNeedsRedraw();
break;
}
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698