Closed Bug 1868470 Opened 2 years ago Closed 2 years ago

Write talos glvideo/canvas2dvideo style tests for WebCodecs and DOM workers

Categories

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

task

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: aosmond, Assigned: aosmond)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

We should write new tests similar to glvideo/canvas2dvideo but:

  1. Use WebCodecs VideoFrame as an input instead of HTMLVideoElement
  2. Run on the DOM worker threads

This patch adds new variants of the glvideo/canvas2dvideo talos tests,
but this time focused on OffscreenCanvas and WebCodecs.

There are test variants for each:

  • Execution thread (main thread or DOM worker)
  • Canvas type (WebGL or 2D canvas)
  • Codec type (H264, VP9 or AV1)

They are included as part of the existing webgl talos job.

This is very similar, and shares code with, to https://w3c.github.io/webcodecs/samples/video-decode-display/.

Next on my agenda is improving the performance of these benchmarks, especially H264 + 2D canvas + Windows. Preliminary results show that it is abysmal compared to VP9 and AV1, because counter intuitively, we are slower on the accelerated path. This is due to readbacks we could easily avoid. I think we can also improve the performance of VP9 and AV1 by avoiding copies.

See Also: → 1870128
Blocks: webcodecs
Depends on: 1870346
Pushed by aosmond@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cb0fb07166b1 Add new OffscreenCanvas and WebCodecs talos tests. r=perftest-reviewers,sparky
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: