diff options
author | Simon Ser <contact@emersion.fr> | 2021-04-12 14:09:27 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-05-17 16:22:43 +0200 |
commit | 6f39574ff5eaf3059e2bfeccb02eb7648199cdc6 (patch) | |
tree | a8fb06641424d3aa079dc3a904d2d13e995ffc12 /include/wlr | |
parent | 6f69e2f12e57db177bea83be901c4fa171d6c3a3 (diff) |
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.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_linux_dmabuf_v1.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_linux_dmabuf_v1.h b/include/wlr/types/wlr_linux_dmabuf_v1.h index 17e897c3..a2db7fea 100644 --- a/include/wlr/types/wlr_linux_dmabuf_v1.h +++ b/include/wlr/types/wlr_linux_dmabuf_v1.h @@ -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; }; /** |