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:

committed by
Jonas Ådahl

parent
1455c402b9
commit
b7b5fb293d
@ -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 ())
|
||||
|
Reference in New Issue
Block a user