Introduce compositor-based AnimationRunner.
Previously, animations were ticked by base::Timer. This wasn't aligned with Compositor so animation can jank or stutter. Thus, we need a way to use custom animation runner which is aligned to compositor's frame. In favor of layering, we should inject custom animation runner from a layer views/ or chrome/ to animation system. For this reason, AnimationRunner is introduced and clients can inject this dependcency via AnimationRunner. For example, Widget provides CompositorAnimationRunner which observes compositors animation frame. TODO: We need to investigate other callsites where gfx::Animation/LinearAnimations are used. Bug: 824026 Change-Id: Id4d7d88a38a823fea7c860510f11ba38f7eb4e11 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1475023 Commit-Queue: Sang Woo Ko <sangwoo108@chromium.org> Reviewed-by:Sadrul Chowdhury <sadrul@chromium.org> Reviewed-by:
Peter Kasting <pkasting@chromium.org> Reviewed-by:
Alan Cutter <alancutter@chromium.org> Cr-Commit-Position: refs/heads/master@{#657587}
Showing
Please register or sign in to comment