[scroll-animations] Don't compute timeline for animation style changes
Currently we are creating a new ScrollTimeline for every frame, even for is_animation_style_change==true, in which case we don't even look at the 'timeline' variable. This CL moves the timeline computation to the branch handling new animations, such that we don't waste time by creating timelines that are never used. Bug: 1074052 Change-Id: If9327fa9dbc97666aae3377cc8b22deb95382932 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2374448 Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org> Reviewed-by:Kevin Ellis <kevers@chromium.org> Cr-Commit-Position: refs/heads/master@{#801478}
Showing
Please register or sign in to comment