summaryrefslogtreecommitdiff
path: root/gdk/gdkcairo.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2016-04-25 11:29:14 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2016-10-18 11:29:34 +0100
commitb425cff6896e5802e65fe4fde293645e8d236884 (patch)
tree296f124e66ee2454358edf03b29cc55f49cf5bcd /gdk/gdkcairo.h
parent0e2a87a4bcccae77c7881f2e34cd68df9308b98d (diff)
downloadgtk+-b425cff6896e5802e65fe4fde293645e8d236884.tar.gz
gdk: Add utility for uploading Cairo surfaces to GL
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.
Diffstat (limited to 'gdk/gdkcairo.h')
-rw-r--r--gdk/gdkcairo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdk/gdkcairo.h b/gdk/gdkcairo.h
index dd874f7c5b..8ba8baa4ca 100644
--- a/gdk/gdkcairo.h
+++ b/gdk/gdkcairo.h
@@ -83,6 +83,13 @@ void gdk_cairo_draw_from_gl (cairo_t *cr,
GDK_AVAILABLE_IN_3_22
GdkDrawingContext * gdk_cairo_get_drawing_context (cairo_t *cr);
+GDK_AVAILABLE_IN_3_22
+void gdk_cairo_surface_upload_to_gl (cairo_surface_t *surface,
+ int target,
+ int width,
+ int height,
+ GdkGLContext *context);
+
G_END_DECLS
#endif /* __GDK_CAIRO_H__ */