[Webkit-unassigned] [Bug 237082] createImageBitmap cannot premultiply alpha with ImageData

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 14 13:29:31 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=237082

--- Comment #4 from Brent Fulgham <bfulgham at webkit.org> ---
The RGBA8 is then permuted to BGRA to go into the IOSurface:

00 00 2C 2C

Becomes

2C 00 00 2C

So the image buffer is properly constructed.

I think the issue is when this buffer is used to populate the textImage (WebGLRenderingContextBase::texImageSource) doesn't have the context that the image data is premultiplied; it looks like it rolls the premultiplication out of the buffer before loading into the texture.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230414/f4389b0f/attachment.htm>


More information about the webkit-unassigned mailing list