The surface-to-GL upload logic has become more complicated with the addition of the GLES code paths; it's more logical to have a public utility function that can be called from GDK users, instead of copy pasting the whole thing multiple times.
b425cff gdk: Add utility for uploading Cairo surfaces to GL
gdk/gdkcairo.h | 7 +++++++
gdk/gdkgl.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 55 insertions(+)
Upstream: git.gnome.org