Bug 315011

Summary: [GTK][WPE] Skia Compositor: use SkCanvas::drawImageRect instead of SkSurface::writePixels to upload BGRA buffers to textures
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebKitGTKAssignee: Carlos Garcia Campos <cgarcia>
Status: RESOLVED INVALID    
Severity: Normal CC: bugs-noreply, commit-queue
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 315087    
Bug Blocks:    

Carlos Garcia Campos
Reported 2026-05-18 04:08:09 PDT
When using SkSurface::writePixels the BGRA to RGBA conversion is always done by CPU before pixels are uploaded. With SkCanvas::drawImageRect is the GL platform supports BGRA, the pixels are uploaded as BGRA and then converted by the GPU before painting.
Attachments
Carlos Garcia Campos
Comment 1 2026-05-18 04:10:05 PDT
EWS
Comment 2 2026-05-18 06:19:23 PDT
Committed 313410@main (0862297dc193): <https://commits.webkit.org/313410@main> Reviewed commits have been landed. Closing PR #65100 and removing active labels.
WebKit Commit Bot
Comment 3 2026-05-19 02:33:48 PDT
Re-opened since this is blocked by bug 315087
Carlos Garcia Campos
Comment 4 2026-05-19 03:15:24 PDT
This didn't work, we will try a different approach.
Note You need to log in before you can comment on or make changes to this bug.