Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement convertToBlob API for OffscreenCanvas #24272
Comments
|
This might be best done after #24123, since that PR implies some fairly significant changes to |
|
Also, we might want to first implement Transferable for OffscreenCanvas, since that might imply some reshuffling in the implementation of OffscreenCanvas(I assume something similar as the split between MessagePort and MessagePortImpl being done in #23637), and such as change could signifanctly affect the implementation of convertToBlob. See #24276 |
|
I doubt that those will have a significant impact on the implementation here - this task is focused on getting the pixels from the canvas and stashing them in a blob, so the implementation details of either the canvas or blob shouldn't really affect it. |
WebIDL: https://html.spec.whatwg.org/multipage/canvas.html#the-offscreencanvas-interface
Spec: https://html.spec.whatwg.org/multipage/canvas.html#dom-offscreencanvas-converttoblob
Code:
components/script/dom/webidls/OffscreenCanvas.webidlcomponents/script/dom/offscreencanvas.rsTests:
./mach test-wpt tests/wpt/web-platform-tests/offscreen-canvas/convert-to-blob/