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

Unified Diff: cc/layers/layer_impl_unittest.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/layers/layer_impl.cc ('k') | cc/trees/damage_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl_unittest.cc
diff --git a/cc/layers/layer_impl_unittest.cc b/cc/layers/layer_impl_unittest.cc
index dc58c9ad8015015bc592437a0e50947f530a13ea..fbc48505e6d10b4066d0aeeaa2d7e5d8dc143251 100644
--- a/cc/layers/layer_impl_unittest.cc
+++ b/cc/layers/layer_impl_unittest.cc
@@ -188,7 +188,11 @@ TEST(LayerImplTest, VerifyLayerChangesAreTrackedProperly) {
arbitrary_number, root->effect_tree_index(),
host_impl.active_tree()));
EXECUTE_AND_VERIFY_NO_NEED_TO_PUSH_PROPERTIES_AND_SUBTREE_CHANGED(
- root->OnTransformAnimated(arbitrary_transform));
+ host_impl.active_tree()
+ ->property_trees()
+ ->transform_tree.OnTransformAnimated(arbitrary_transform,
+ root->transform_tree_index(),
+ host_impl.active_tree()));
EXECUTE_AND_VERIFY_SUBTREE_CHANGED(root->ScrollBy(arbitrary_vector2d);
root->SetNeedsPushProperties());
// SetBoundsDelta changes subtree only when masks_to_bounds is true and it
@@ -327,7 +331,11 @@ TEST(LayerImplTest, VerifyNeedsUpdateDrawProperties) {
arbitrary_number, layer->effect_tree_index(),
host_impl.active_tree()));
VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(
- layer->OnTransformAnimated(arbitrary_transform));
+ host_impl.active_tree()
+ ->property_trees()
+ ->transform_tree.OnTransformAnimated(arbitrary_transform,
+ layer->transform_tree_index(),
+ host_impl.active_tree()));
VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetBounds(arbitrary_size);
layer->NoteLayerPropertyChanged());
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/trees/damage_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698