Bug 313217

Summary: [GTK][WPE] Skia Compositor: avoid copies when getting the SkImage of a tile
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebKitGTKAssignee: Carlos Garcia Campos <cgarcia>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Carlos Garcia Campos
Reported 2026-04-24 02:22:30 PDT
SkSurface::makeImageSnapshot() does a copy-on-write, but when the surface is wrapping an external texture, it always copies because it doesn't know if the texture will be modified externally. We know the texture won't change, so we can use our own cached image wihtout copying.
Attachments
Carlos Garcia Campos
Comment 1 2026-04-24 02:27:03 PDT
EWS
Comment 2 2026-04-24 03:43:44 PDT
Committed 311937@main (6961eee0cf14): <https://commits.webkit.org/311937@main> Reviewed commits have been landed. Closing PR #63512 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.