Improve performance of getting animation scales
- In ElementAnimations::UpdateClientAnimationState(), only get animation scales when there is transform animation. This fixes the main reason of the regression caused by crrev.com/c/1547131. - Combine HasOnlyTranslationTransforms(), AnimationStartScale() and MaximumTargetScale() of KeyframeEffect into one function to avoid duplicated code/executation when called separately from one place. - Remove unused HasOnlyTranslationTransforms() from AnimationHost and ElementAnimations. Bug: 951912 Change-Id: I5cc858fb012f0b7c0280b9935d84bc2aa4cf4d7c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1580551 Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by:Stephen McGruer <smcgruer@chromium.org> Cr-Commit-Position: refs/heads/master@{#654647}
Showing
This diff is collapsed.
Please register or sign in to comment