Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1499)

Unified Diff: cc/layers/picture_layer_impl.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/layer_impl.cc ('k') | cc/layers/picture_layer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl.cc
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc
index b2373fcae8326558b47b9760dd256e075fc1ad3f..f1b74852d8d9157a32f82dfb2445b39a37e1a45c 100644
--- a/cc/layers/picture_layer_impl.cc
+++ b/cc/layers/picture_layer_impl.cc
@@ -1025,8 +1025,11 @@ void PictureLayerImpl::RecalculateRasterScales() {
!ShouldAdjustRasterScaleDuringScaleAnimations()) {
bool can_raster_at_maximum_scale = false;
bool should_raster_at_starting_scale = false;
- float maximum_scale = draw_properties().maximum_animation_contents_scale;
- float starting_scale = draw_properties().starting_animation_contents_scale;
+ CombinedAnimationScale animation_scales =
+ layer_tree_impl()->property_trees()->GetAnimationScales(
+ transform_tree_index(), layer_tree_impl());
+ float maximum_scale = animation_scales.maximum_animation_scale;
+ float starting_scale = animation_scales.starting_animation_scale;
if (maximum_scale) {
gfx::Size bounds_at_maximum_scale =
gfx::ScaleToCeiledSize(raster_source_->GetSize(), maximum_scale);
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/picture_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698