Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Short-circuit interpolation calculation for a static-valued property
With the exception of cross-fade interpolations, we can sample a single keyframe and use its value throughout the animation if the property is constant-valued. For an animation of the background property that only explicitly sets the background color, we can short-circuit the work when applying the animation effect for all of the implicitly set properties. Bug: 333861763 Change-Id: Id5634a2656b5e739a91d9593a3ff7c5bb58a85b3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5426601 Commit-Queue: Kevin Ellis <[email protected]> Reviewed-by: Robert Flack <[email protected]> Cr-Commit-Position: refs/heads/main@{#1286714}
- Loading branch information