Implement ui::TransformAnimationCurveAdapter::MaximumScale()
This ensures that cc will rasterize the animating layer at the maximum scale, to avoid 1. blurriness during scaling-up animations (e.g. scale 1 -> 3), 2. too big raster scale (wasting memory) during small scale animations (e.g. scale 0.1 -> 0.3). Previously in the above cases, in simple cases (without ancestor scales), scale 1 for the layer was used for raterization because ui::TransformAnimationCurveAdapter failed to provide the maximum scale of animations. Also remove unused ui::InverseTransformCurveAdapter. Bug: 1161586 Change-Id: Ieb876bc271c98627bd61370c93e806b44be0b868 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2605242 Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by:Robert Flack <flackr@chromium.org> Cr-Commit-Position: refs/heads/master@{#844659}
Showing
Please register or sign in to comment