Descriptioncc: Make PictureLayerImpl use a better choice for animated raster scale.
Two changes here:
1. When finding the max scale of an animation, only consider the scales
at each of the animations keyframes excluding the animations origin.
This is done because the origin is not an interesting scale to use, we
are animating away from it. And in the case of a layer at a high scale,
we are unable to raster all of its content at that scale. It would be
better to use the scale at the end of the transform since that is what
we will want to raster eventually.
2. When PictureLayerImpl chooses to use the animation scale:
a) Always allow using it if the scale is less than the current raster
scale choice. It can only put us in a better position memory-wise.
b) Don't use the max() with the current raster scale choice, that means
we will never use the animation scale if it is zooming out, which is
not what we want. This would also mean we choose a new raster scale on
every frame, which is bad. Just use the scale of the animation straight
up, and if it's not known, use a source scale of 1.
R=ajuma, vmpstr
BUG=421812
Committed: https://crrev.com/e488f71403f5a3a9bd43629b4b9fbb7b9d3d6ff7
Cr-Commit-Position: refs/heads/master@{#299162}
Patch Set 1 #
Total comments: 6
Patch Set 2 : animationscale: onemorerename #
Total comments: 2
Patch Set 3 : animationscale: fixes #
Total comments: 8
Patch Set 4 : animationscale: direction #Patch Set 5 : animationscale: scaledownstillcheckssize #
Total comments: 4
Patch Set 6 : animationscale: . #Patch Set 7 : animationscale: fixtest #Messages
Total messages: 22 (3 generated)
|