From ea83957ecc155545232e2897023831b5851357a3 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Wed, 22 Apr 2020 23:24:19 +0000 Subject: screencopy: Implement copying into linux-dmabuf --- include/wlr/types/wlr_screencopy_v1.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/wlr/types/wlr_screencopy_v1.h b/include/wlr/types/wlr_screencopy_v1.h index 76f49e03..b778dd41 100644 --- a/include/wlr/types/wlr_screencopy_v1.h +++ b/include/wlr/types/wlr_screencopy_v1.h @@ -38,6 +38,7 @@ struct wlr_screencopy_frame_v1 { struct wl_list link; enum wl_shm_format format; + uint32_t fourcc; struct wlr_box box; int stride; @@ -45,7 +46,9 @@ struct wlr_screencopy_frame_v1 { bool with_damage; - struct wl_shm_buffer *buffer; + struct wl_shm_buffer *shm_buffer; + struct wlr_dmabuf_v1_buffer *dma_buffer; + struct wl_listener buffer_destroy; struct wlr_output *output; -- cgit v1.2.3