mirror of
https://github.com/servo/servo.git
synced 2025-09-30 16:49:16 +01:00
imagebitmap: Add support of Blob as ImageBitmapSource (#37560)
Follow to the HTML specification and support of Blob as ImageBitmapSource to able use it as intermediate instance in "fetch() -> Blob -> ImageBitmap" execution sequence. https://html.spec.whatwg.org/multipage/#imagebitmapsource The specification says what these steps must run in parallel (outside the createImageBitmap task), but currently loading bytes from Blob and later image decoding happen in synchronous order while promise is fullfilled or rejected on bitmap task source. https://html.spec.whatwg.org/multipage/#the-imagebitmap-interface:blob-4 Testing: Improvements in the following WPT tests - html/canvas/element/compositing/2d.composite* - html/canvas/element/drawing-images-to-the-canvas/2d.drawImage* - html/canvas/element/manual/imagebitmap/createImageBitmap* - html/canvas/offscreen/compositing/2d.composite - html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage - webgl/tests/conformance/textures/image_bitmap_from_blob/* Fixes (partially): #34112 Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>
This commit is contained in:
parent
9dc1dde7cb
commit
a426a2e884
233 changed files with 209 additions and 1208 deletions
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.3arg.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.3arg]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.3arg.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.5arg.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.5arg]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.5arg.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.9arg.basic.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.9arg.basic]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.9arg.basic.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.9arg.destpos.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.9arg.destpos]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.9arg.destpos.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.9arg.destsize.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.9arg.destsize]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.9arg.destsize.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.9arg.sourcepos.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.9arg.sourcepos]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.9arg.sourcepos.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.9arg.sourcesize.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.9arg.sourcesize]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.9arg.sourcesize.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.alpha.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.alpha]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.alpha.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.clip.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.clip]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.clip.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.composite.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.composite]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.composite.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.floatsource.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.floatsource]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.floatsource.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.negativedest.html]
|
||||
[Negative destination width/height represents the correct rectangle]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.negativedest.worker.html]
|
||||
[Negative destination width/height represents the correct rectangle]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.negativedir.html]
|
||||
[Negative dimensions do not affect the direction of the image]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.negativedir.worker.html]
|
||||
[Negative dimensions do not affect the direction of the image]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.negativesource.html]
|
||||
[Negative source width/height represents the correct rectangle]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.negativesource.worker.html]
|
||||
[Negative source width/height represents the correct rectangle]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.nonfinite.html]
|
||||
[drawImage() with Infinity/NaN is ignored]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.nonfinite.worker.html]
|
||||
[drawImage() with Infinity/NaN is ignored]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.nowrap.html]
|
||||
[Stretched images do not get pixels wrapping around the edges]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.nowrap.worker.html]
|
||||
[Stretched images do not get pixels wrapping around the edges]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.path.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.path]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.path.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.transform.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.transform]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.drawImage.transform.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
|
@ -1,6 +1,3 @@
|
|||
[2d.drawImage.zerosource.html]
|
||||
[drawImage with zero-sized source rectangle throws INDEX_SIZE_ERR]
|
||||
expected: FAIL
|
||||
|
||||
[drawImage with zero-sized source rectangle draws nothing without exception]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
[2d.drawImage.zerosource.worker.html]
|
||||
[drawImage with zero-sized source rectangle throws INDEX_SIZE_ERR]
|
||||
expected: FAIL
|
||||
|
||||
[drawImage with zero-sized source rectangle draws nothing without exception]
|
||||
expected: FAIL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue