Schedule frame for scroll linked animations only when scrolling changes
Scheduling frame for scroll linked animations regardless of the scroller updates makes scroll animations inefficient. This change schedules next frame only when scroll timeline current time changes. The change assumes that animation timeline scheduling runs (via DocumentAnimations::UpdateAnimations) at the end of any frame in which scroll timeline (i.e. its offset, range, overflow) is invalidated. Bug: 1039750 Change-Id: Ib87a298e6d09cbeb85276cea4c165022b76f3732 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1990003 Commit-Queue: Olga Gerchikov <gerchiko@microsoft.com> Reviewed-by:Robert Flack <flackr@chromium.org> Cr-Commit-Position: refs/heads/master@{#732987}
Showing
Please register or sign in to comment