screencopy: Implement copying into linux-dmabuf

This commit is contained in:
Andri Yngvason 2020-04-22 23:24:19 +00:00 committed by Simon Ser
parent 909b0213b3
commit ea83957ecc
2 changed files with 113 additions and 27 deletions

View file

@ -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;