Closed Bug 1694490 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 27747 - Call CheckCanStartAnimationOnCompositor at paint

Categories

(Core :: Layout: Images, Video, and HTML Frames, task, P4)

task

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 27747 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/27747
Details from upstream follow.

b'Xida Chen <xidachen@chromium.org>' wrote:

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/2713344
WPT-Export-Revision: 3db332d79265b0bd42738fb7ff544bd3726f8f70

Component: web-platform-tests → Layout: Images, Video, and HTML Frames
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

PASS: 1

Safari

PASS: 1

Links

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e4b1504e5906
[wpt PR 27747] - Call CheckCanStartAnimationOnCompositor at paint, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.