linux-dmabuf-v1: implement wlr_buffer

This allows the DMA-BUF wl_buffer objects to be used directly as
wlr_buffers, without having to use wlr_client_buffer_import.
This commit is contained in:
Simon Ser 2021-04-12 14:09:27 +02:00
parent 6f69e2f12e
commit 6f39574ff5
2 changed files with 53 additions and 7 deletions

View file

@ -11,11 +11,16 @@
#include <stdint.h>
#include <wayland-server-core.h>
#include <wlr/types/wlr_buffer.h>
#include <wlr/render/dmabuf.h>
struct wlr_dmabuf_v1_buffer {
struct wl_resource *resource;
struct wlr_buffer base;
struct wl_resource *resource; // can be NULL if the client destroyed it
struct wlr_dmabuf_attributes attributes;
struct wl_listener release;
};
/**