summaryrefslogtreecommitdiff
path: root/gdk/wayland/gdkwaylandglcontext.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-05-09 10:28:16 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-05-09 10:30:16 -0400
commit1868d71163c32e531e0e2d453a291e487176821b (patch)
tree5b0818b705634cbdc79d87f94f8f09d26a8915a4 /gdk/wayland/gdkwaylandglcontext.h
parentff35efeb41ffae4d3e897915fbfa8702be5b2698 (diff)
downloadgtk+-import-dmabuf.tar.gz
Add a more complete implementationimport-dmabuf
Support multiple planes, and modifiers. And make this a backend API.
Diffstat (limited to 'gdk/wayland/gdkwaylandglcontext.h')
-rw-r--r--gdk/wayland/gdkwaylandglcontext.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/gdk/wayland/gdkwaylandglcontext.h b/gdk/wayland/gdkwaylandglcontext.h
index 34a1e4c2a4..7f83af9976 100644
--- a/gdk/wayland/gdkwaylandglcontext.h
+++ b/gdk/wayland/gdkwaylandglcontext.h
@@ -32,7 +32,7 @@ G_BEGIN_DECLS
#define GDK_TYPE_WAYLAND_GL_CONTEXT (gdk_wayland_gl_context_get_type ())
#define GDK_WAYLAND_GL_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_WAYLAND_GL_CONTEXT, GdkWaylandGLContext))
-#define GDK_WAYLAND_IS_GL_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_WAYLAND_GL_CONTEXT))
+#define GDK_IS_WAYLAND_GL_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_WAYLAND_GL_CONTEXT))
typedef struct _GdkWaylandGLContext GdkWaylandGLContext;
typedef struct _GdkWaylandGLContextClass GdkWaylandGLContextClass;
@@ -40,6 +40,17 @@ typedef struct _GdkWaylandGLContextClass GdkWaylandGLContextClass;
GDK_AVAILABLE_IN_ALL
GType gdk_wayland_gl_context_get_type (void) G_GNUC_CONST;
+GDK_AVAILABLE_IN_4_4
+int gdk_wayland_gl_context_import_dmabuf (GdkGLContext *context,
+ uint32_t fourcc,
+ unsigned int width,
+ unsigned int height,
+ uint32_t n_planes,
+ const int *fd,
+ const uint32_t *stride,
+ const uint32_t *offset,
+ const uint64_t *modifiers);
+
G_END_DECLS
#endif /* __GDK_WAYLAND_GL_CONTEXT_H__ */