wayland/eglstream: Don't build skeleton when disabled

Instead of calling no-op functions when EGLStream support isn't enabled,
make it clear at the call site that EGLStream support is optional.
This commit is contained in:
Jonas Ådahl
2018-11-06 17:09:03 +01:00
parent 6192e944b8
commit 417c00b8fa
5 changed files with 31 additions and 10 deletions

View File

@ -38,7 +38,9 @@ typedef enum _MetaWaylandBufferType
META_WAYLAND_BUFFER_TYPE_UNKNOWN,
META_WAYLAND_BUFFER_TYPE_SHM,
META_WAYLAND_BUFFER_TYPE_EGL_IMAGE,
#ifdef HAVE_WAYLAND_EGLSTREAM
META_WAYLAND_BUFFER_TYPE_EGL_STREAM,
#endif
META_WAYLAND_BUFFER_TYPE_DMA_BUF,
} MetaWaylandBufferType;
@ -54,9 +56,11 @@ struct _MetaWaylandBuffer
MetaWaylandBufferType type;
#ifdef HAVE_WAYLAND_EGLSTREAM
struct {
MetaWaylandEglStream *stream;
} egl_stream;
#endif
struct {
MetaWaylandDmaBufBuffer *dma_buf;