mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
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.
This commit is contained in:
@ -29,6 +29,9 @@
|
||||
#include "cogl-display.h"
|
||||
#include "cogl-renderer.h"
|
||||
#include "cogl-onscreen-template.h"
|
||||
#if COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT
|
||||
#include <wayland-server.h>
|
||||
#endif
|
||||
|
||||
struct _CoglDisplay
|
||||
{
|
||||
@ -38,6 +41,10 @@ struct _CoglDisplay
|
||||
CoglRenderer *renderer;
|
||||
CoglOnscreenTemplate *onscreen_template;
|
||||
|
||||
#ifdef COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT
|
||||
struct wl_display *wayland_compositor_display;
|
||||
#endif
|
||||
|
||||
#ifdef COGL_HAS_EGL_PLATFORM_GDL_SUPPORT
|
||||
struct gdl_plane *gdl_plane;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user