Closed Bug 2046237 Opened 2 days ago Closed 19 hours ago

[wpt-sync] Sync PR 60501 - [HiC] Add AnimatedImageFrameIndexMap to CanvasChildPaintState

Categories

(Core :: Graphics: Canvas2D, task, P4)

task

Tracking

()

RESOLVED FIXED
153 Branch
Tracking Status
firefox153 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Stefan Zager <szager@chromium.org> wrote:

[HiC] Add AnimatedImageFrameIndexMap to CanvasChildPaintState

When serializing/rasterizing the canvas, we use CustomDataOps bookended
around the element image drawPicture call to ensure that animated image
frame indices are resolved by the map from the drawn element image.
The upshot is that the frame index is pinned to whatever the current
frame index was when the paint snapshot was taken.

This also makes animated images work for worker thread canvas.

Bug: 435220195
Change-Id: I604e2d3fd7863f2f3e1cda69cd0481a2f89ad723
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7901732
Reviewed-by: Philip Rogers \<pdr@chromium.org>
Reviewed-by: Dave Tapuska \<dtapuska@chromium.org>
Reviewed-by: Kai Ninomiya \<kainino@chromium.org>
Reviewed-by: Vladimir Levin \<vmpstr@chromium.org>
Commit-Queue: Stefan Zager \<szager@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1644086}

Component: web-platform-tests → Graphics: Canvas2D
Product: Testing → Core

CI Results

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

Total 2 tests and 1 subtests

Status Summary

Firefox

TIMEOUT: 4

Chrome

TIMEOUT: 4

Safari

TIMEOUT: 4

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 19 hours ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
You need to log in before you can comment on or make changes to this bug.