Bug 1700473 [wpt PR 28196] - Switch ImageDecoder over to new ImageTrack semantics...
commitce8bffc7c0c199a3969a6858d2cecf73a73c73b3
authorDale Curtis <dalecurtis@chromium.org>
Sat, 27 Mar 2021 11:08:07 +0000 (27 11:08 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sat, 27 Mar 2021 17:41:25 +0000 (27 17:41 +0000)
treed4aaa97481dc88bb6fff7610e85e086d43859b1f
parentfe6db75cb8fedbd647cfd956012e2dda0582a4a5
Bug 1700473 [wpt PR 28196] - Switch ImageDecoder over to new ImageTrack semantics., a=testonly

Automatic update from web-platform-tests
Switch ImageDecoder over to new ImageTrack semantics.

This moves frameCount and repetitionCount onto the track properties
and removes selectTrack() in favor of "track.selected = true". The
tracks list is modeled after Audio/VideoTrackList, but for now does
not include any events.

This also hardens the 'animated' status on a track so that it won't
change after metadata has been retrieved. repetitionCount is switched
to a 'unrestricted float' so 'Infinity' can be be accurately signaled.

R=chcunningham

Bug: 11824351183456
Test: New and updated unittests and wpt tests.
Change-Id: Ibf8363e6f80d998202d42f745180812953681da9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2783220
Auto-Submit: Dale Curtis <dalecurtis@chromium.org>
Commit-Queue: Chrome Cunningham <chcunningham@chromium.org>
Reviewed-by: Chrome Cunningham <chcunningham@chromium.org>
Cr-Commit-Position: refs/heads/master@{#866786}

--

wpt-commits: 8c208d775e1bcac4b6a9635f9f2484f9f10e8036
wpt-pr: 28196
testing/web-platform/tests/webcodecs/README.md
testing/web-platform/tests/webcodecs/four-colors-flip.avif [new file with mode: 0644]
testing/web-platform/tests/webcodecs/image-decoder.any.js