diff options
author | emersion <contact@emersion.fr> | 2018-05-23 09:02:19 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-05-29 18:47:17 +0100 |
commit | e26f4dff9843c51762852642719aa0eee1449aca (patch) | |
tree | cfebd1c2406fc270b3db52172d1ab38cc8ea0b06 /include | |
parent | 5ba1a9af5652aa2407738ec6290e7a9a59a86ea6 (diff) |
export-dmabuf: wait for the frame to be ready, send timestamp
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_export_dmabuf_v1.h | 2 | ||||
-rw-r--r-- | include/wlr/types/wlr_output.h | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_export_dmabuf_v1.h b/include/wlr/types/wlr_export_dmabuf_v1.h index 78db1e61..4cb3393f 100644 --- a/include/wlr/types/wlr_export_dmabuf_v1.h +++ b/include/wlr/types/wlr_export_dmabuf_v1.h @@ -11,6 +11,8 @@ struct wlr_export_dmabuf_frame_v1 { struct wl_list link; struct wlr_output *output; + + struct wl_listener output_swap_buffers; }; struct wlr_export_dmabuf_manager_v1 { diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index 669b96ed..96c98dc3 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -82,7 +82,7 @@ struct wlr_output { struct { struct wl_signal frame; struct wl_signal needs_swap; - struct wl_signal swap_buffers; + struct wl_signal swap_buffers; // wlr_output_event_swap_buffers struct wl_signal enable; struct wl_signal mode; struct wl_signal scale; @@ -108,6 +108,12 @@ struct wlr_output { void *data; }; +struct wlr_output_event_swap_buffers { + struct wlr_output *output; + struct timespec *when; + pixman_region32_t *damage; +}; + struct wlr_surface; void wlr_output_enable(struct wlr_output *output, bool enable); |