Bug 251149

Summary: [GTK] Uses deprecated gdk_cairo_draw_from_gl
Product: WebKit Reporter: Michael Catanzaro <mcatanzaro>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: bugs-noreply, cgarcia, mcatanzaro
Priority: P2    
Version: WebKit Nightly Build   
Hardware: PC   
OS: Linux   
Bug Depends on:    
Bug Blocks: 210100    

Michael Catanzaro
Reported 2023-01-25 06:29:01 PST
AcceleratedBackingStoreWayland uses gdk_cairo_draw_from_gl, which is documented as "The main way to not draw GL content in GTK." """ The function is overly complex and produces broken output in various combinations of arguments. If you want to draw with GL textures in GTK, use gdk_gl_texture_new(); if you want to use that texture in Cairo, use gdk_texture_download() to download the data into a Cairo image surface. """ I noticed due to some discussion at Red Hat about how it's currently broken. See https://gitlab.gnome.org/GNOME/gtk/-/issues/5517 where it's not flushing properly. No clue whether it would be feasible to avoid it or not. I've never attempted to understand graphics.
Attachments
Carlos Garcia Campos
Comment 1 2023-01-25 06:37:33 PST
We use gdk_cairo_draw_from_gl() only in GTK3, there's no gdk_gl_texture_new() in GTK3, no?
Michael Catanzaro
Comment 2 2023-01-25 08:00:56 PST
OK, closing.
Note You need to log in before you can comment on or make changes to this bug.