Implement VideoFrame for CanvasImageSource and ImageBitmapSource
Categories
(Core :: Graphics: Canvas2D, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox117 | --- | fixed |
People
(Reporter: chunmin, Assigned: aosmond)
References
(Blocks 1 open bug)
Details
Attachments
(3 external files, 1 obsolete file)
CanvasImageSource should be up to date [1, 2] once VideoFrame is implemented in bug 1774300. ImageBitmapSource needs to be updated as well since it inherits from CanvasImageSource [3].
[1] https://html.spec.whatwg.org/multipage/canvas.html#canvasimagesource
[2] https://github.com/w3c/webcodecs/issues/158
[3] https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#imagebitmapsource
| Reporter | ||
Comment 1•4 years ago
|
||
This patch adds the VideoFrame into CanvasImageSource so the spec of
CanvasImageSource is up to date [1, 2].
[1] https://html.spec.whatwg.org/multipage/canvas.html#canvasimagesource
[2] https://github.com/w3c/webcodecs/issues/158
Updated•4 years ago
|
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 2•3 years ago
|
||
This patch adds a new method to convert from a VideoFrame to a
SurfaceFromElementResult, which is used by canvas, WebGPU and
ImageBitmap to do necessary conversions to a native surface.
Updated•3 years ago
|
| Assignee | ||
Comment 3•3 years ago
|
||
Depends on D150679
| Assignee | ||
Comment 4•3 years ago
|
||
Depends on D150679
Comment 5•3 years ago
|
||
Comment on attachment 9339344 [details]
Bug 1781527 - Part 3. Implement means to use VideoFrame with WebGL.
Revision D181118 was moved to bug 1781526. Setting attachment 9339344 [details] to obsolete.
Comment 7•3 years ago
|
||
Backed out for causing Assertion in ImageBitmap.cpp
- Backout link
- Push with failures
- Failure Log
- Failure line: Assertion failure: mPictureRect.IsEmpty(), at /builds/worker/checkouts/gecko/dom/canvas/ImageBitmap.cpp:714
| Assignee | ||
Comment 8•3 years ago
|
||
Reviewing the code, it is actually a bad assertion, so I will remove it.
Comment 10•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/37f0ddb14261
https://hg.mozilla.org/mozilla-central/rev/1766046703c8
https://hg.mozilla.org/mozilla-central/rev/36c0839d5021
https://hg.mozilla.org/mozilla-central/rev/4704cdd04b5e
Updated•2 months ago
|
Description
•