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

Unified Diff: cc/layers/picture_layer_impl_unittest.cc

Issue 2105673003: cc: Compute animation scale on demand (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit changes Created 4 years, 6 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/picture_layer_impl.cc ('k') | cc/proto/property_tree.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl_unittest.cc
diff --git a/cc/layers/picture_layer_impl_unittest.cc b/cc/layers/picture_layer_impl_unittest.cc
index bff36d6ff1c6e0cc74ad04e134a2815aca5a7fcd..1272add7f9e90be56810e6d190d15e5c133ffd5b 100644
--- a/cc/layers/picture_layer_impl_unittest.cc
+++ b/cc/layers/picture_layer_impl_unittest.cc
@@ -169,10 +169,9 @@ class PictureLayerImplTest : public TestLayerTreeHostBase {
layer->draw_properties().screen_space_transform = scale_transform;
layer->set_is_drawn_render_surface_layer_list_member(true);
DCHECK_EQ(layer->GetIdealContentsScale(), ideal_contents_scale);
- layer->draw_properties().maximum_animation_contents_scale =
- maximum_animation_contents_scale;
- layer->draw_properties().starting_animation_contents_scale =
- starting_animation_contents_scale;
+ layer->layer_tree_impl()->property_trees()->SetAnimationScalesForTesting(
+ layer->transform_tree_index(), maximum_animation_contents_scale,
+ starting_animation_contents_scale);
layer->draw_properties().screen_space_transform_is_animating =
animating_transform_to_screen;
}
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | cc/proto/property_tree.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698