aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorAndri Yngvason <andri@yngvason.is>2020-04-22 23:24:19 +0000
committerSimon Ser <contact@emersion.fr>2020-06-08 20:49:41 +0200
commitea83957ecc155545232e2897023831b5851357a3 (patch)
treee62b7b53f46f1ad4ec7b91792dc76bc1e98b08e9 /include/wlr
parent909b0213b390d445006f1b3d125214dc8df19b5e (diff)
screencopy: Implement copying into linux-dmabuf
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_screencopy_v1.h5
1 files changed, 4 insertions, 1 deletions
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;