• Xianzhu Wang's avatar
    Improve performance of getting animation scales · 51647047
    Xianzhu Wang authored
    - 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: default avatarStephen McGruer <smcgruer@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#654647}
    51647047
keyframe_effect.h 8.33 KB