aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-04-12 14:09:27 +0200
committerSimon Ser <contact@emersion.fr>2021-05-17 16:22:43 +0200
commit6f39574ff5eaf3059e2bfeccb02eb7648199cdc6 (patch)
treea8fb06641424d3aa079dc3a904d2d13e995ffc12 /include/wlr
parent6f69e2f12e57db177bea83be901c4fa171d6c3a3 (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.h7
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;
};
/**