From 6f39574ff5eaf3059e2bfeccb02eb7648199cdc6 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 12 Apr 2021 14:09:27 +0200 Subject: 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. --- include/wlr/types/wlr_linux_dmabuf_v1.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/wlr') 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 #include +#include #include 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; }; /** -- cgit v1.2.3