gdk: Add utility for uploading Cairo surfaces to GL

Desktop / GNOME / GTK - Emmanuele Bassi [gnome.org] - 18 October 2016 05:29 UTC

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


  • Share