[Webkit-unassigned] [Bug 252795] New: [WebGL] Avoid using glReadPixels to paint WebGL canvas into 2D canvas

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 22 20:59:51 PST 2023


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

            Bug ID: 252795
           Summary: [WebGL] Avoid using glReadPixels to paint WebGL canvas
                    into 2D canvas
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGL
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: djg at apple.com
                CC: dino at apple.com, kbr at google.com, kkinnunen at apple.com

Current codepath works like:

* Send request to read the back buffer to a pixel-buffer
* Create native image from pixel-buffer
* Draw native image to context 2D

We should try to do better especially when GPUP is enabled because this leads to:

* WP: Send request to read the back buffer to a pixel buffer
* GPUP: glReadPixels to a malloc buffer (WebCore::PixelBuffer)
* GPUP: Send the pixel buffer to WP
* WP: Creates native image out of that, sends that to GPUP
* GPUP: draws that native image to Context2D back-buffer

-- 
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/20230223/3699693e/attachment-0001.htm>


More information about the webkit-unassigned mailing list