Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call CheckCanStartAnimationOnCompositor at paint
Note: this is for background-color animation only, not for other properties. When composite background-color animation, the paint stage collect some parameters such as animated colors for the animation. If this step is successful, then we will paint the element off the main thread. After that, we can have CheckCanStartAnimationOnCompositor returning false and refuse to run the background-color animation on the compositor thread. In this case, the paint of the element off the main thread won't work. So in this CL, we call CheckCanStartAnimationOnCompositor during the paint step. This ensures the consistency of the paint and compositor animation. Bug: 1178987 Change-Id: I737b1e290730637977bc6fcff65cab9b4651aa8a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2713344 Commit-Queue: Xida Chen <xidachen@chromium.org> Reviewed-by: Kevin Ellis <kevers@chromium.org> Cr-Commit-Position: refs/heads/master@{#858271}
- Loading branch information