This commit fixes a performance issue on X11 systems in regards to drawing on an...
authorhenry <henry.riehl@btinternet.com>
Wed, 31 May 2023 22:05:19 +0000 (23:05 +0100)
committerSimon McVittie <smcv@debian.org>
Wed, 8 Nov 2023 16:30:21 +0000 (16:30 +0000)
commite4678a240517825c181df9b1bca443906533ca6f
treea78f85e283f20822f600d9dceb5bce8c87e711d9
parent8eb12aa9f0ca03f079369afbf8417c37eb01e25d
This commit fixes a performance issue on X11 systems in regards to drawing on an OpenGL surface in GTK/GDK.

This commit fixes a performance issue on X11 systems making use of the gdk_cairo_draw_from_gl() function in regards
to drawing on an OpenGL surface in GTK/GDK. Specifically, this fix removes the slow X11 codepath that was used when
executing the gdk_cairo_draw_from_gl() function because it was completely uneeded. I tested the before and after on
Flutter and GTK apps making use of the OpenGL rendering and can confirm that there is no behaviour and visual
difference. This change is also specific to drawings that make use of textures. The render buffer code path has
been left completely unmodified.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/4704
Origin: 3.24.39, commit:7237f5d0eb5ec2f1411a28b9394ff4c4472f4d8b

Gbp-Pq: Name This-commit-fixes-a-performance-issue-on-X11-systems-in-r.patch
gdk/gdkgl.c