wayland: Add zwp_linux_dmabuf_v1 support

https://bugzilla.gnome.org/show_bug.cgi?id=785262
Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone
2017-07-11 16:03:26 +01:00
committed by Jonas Ådahl
parent 1455c402b9
commit b7b5fb293d
10 changed files with 736 additions and 1 deletions

View File

@ -31,6 +31,7 @@
#include "meta-wayland-types.h"
#include "meta-wayland-egl-stream.h"
#include "meta-wayland-dma-buf.h"
typedef enum _MetaWaylandBufferType
{
@ -38,6 +39,7 @@ typedef enum _MetaWaylandBufferType
META_WAYLAND_BUFFER_TYPE_SHM,
META_WAYLAND_BUFFER_TYPE_EGL_IMAGE,
META_WAYLAND_BUFFER_TYPE_EGL_STREAM,
META_WAYLAND_BUFFER_TYPE_DMA_BUF,
} MetaWaylandBufferType;
struct _MetaWaylandBuffer
@ -55,6 +57,10 @@ struct _MetaWaylandBuffer
struct {
MetaWaylandEglStream *stream;
} egl_stream;
struct {
MetaWaylandDmaBufBuffer *dma_buf;
} dma_buf;
};
#define META_TYPE_WAYLAND_BUFFER (meta_wayland_buffer_get_type ())