summaryrefslogtreecommitdiff
path: root/cogl/cogl-display.c
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2011-05-25 01:37:56 +0100
committerRobert Bragg <robert@linux.intel.com>2011-06-01 20:44:42 +0100
commita29a76dbabf8e68febc50288465fccdfd8d1313f (patch)
tree85d7c1773317ed3612dd4cbe62c39ad8d1c27c79 /cogl/cogl-display.c
parent8714d99300ff6da1fba7959278b321f5eea94844 (diff)
downloadcogl-a29a76dbabf8e68febc50288465fccdfd8d1313f.tar.gz
Adds _cogl_wayland_texture_2d_new_from_buffer API
This adds internal API to be able to wrap a wayland buffer as a CoglTexture2D. There is a --enable-wayland-egl-server option to decide if Cogl should support this feature and potentially any EGL based winsys could support this through the EGL_KHR_image_base and EGL_WL_bind_display extensions.
Diffstat (limited to 'cogl/cogl-display.c')
-rw-r--r--cogl/cogl-display.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/cogl/cogl-display.c b/cogl/cogl-display.c
index 967c0706..aea9d8d8 100644
--- a/cogl/cogl-display.c
+++ b/cogl/cogl-display.c
@@ -129,3 +129,13 @@ cogl_gdl_display_set_plane (CoglDisplay *display,
}
#endif
+#ifdef COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT
+void
+cogl_wayland_display_set_compositor_display (CoglDisplay *display,
+ struct wl_display *wayland_display)
+{
+ g_return_if_fail (display->setup == FALSE);
+
+ display->wayland_compositor_display = wayland_display;
+}
+#endif