WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
251149
[GTK] Uses deprecated gdk_cairo_draw_from_gl
https://bugs.webkit.org/show_bug.cgi?id=251149
Summary
[GTK] Uses deprecated gdk_cairo_draw_from_gl
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
Add attachment
proposed patch, testcase, etc.
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.
Top of Page
Format For Printing
XML
Clone This Bug