diff options
author | Benjamin Otte <otte@redhat.com> | 2021-06-30 04:52:35 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2021-07-22 16:27:31 +0200 |
commit | c7320df0c906d927b542d6739fd4c19fe3191335 (patch) | |
tree | 481652eabc6919d563a435ba7d50f9a4b3e4eb98 /gdk/gdkglcontextprivate.h | |
parent | dd666e4fe4d29572c80f84cfde39027259c99e34 (diff) | |
download | gtk+-c7320df0c906d927b542d6739fd4c19fe3191335.tar.gz |
gdk: Add gdk_gl_context_is_shared()
... and use it in the GL renderers.
Diffstat (limited to 'gdk/gdkglcontextprivate.h')
-rw-r--r-- | gdk/gdkglcontextprivate.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gdk/gdkglcontextprivate.h b/gdk/gdkglcontextprivate.h index 2f9fc23eed..b64a6f4510 100644 --- a/gdk/gdkglcontextprivate.h +++ b/gdk/gdkglcontextprivate.h @@ -52,10 +52,13 @@ struct _GdkGLContextClass { GdkDrawContextClass parent_class; - gboolean (* realize) (GdkGLContext *context, - GError **error); + gboolean (* realize) (GdkGLContext *context, + GError **error); - cairo_region_t * (* get_damage) (GdkGLContext *context); + cairo_region_t * (* get_damage) (GdkGLContext *context); + + gboolean (* is_shared) (GdkGLContext *self, + GdkGLContext *other); }; typedef struct { |