export-dmabuf: wait for the frame to be ready, send timestamp

This commit is contained in:
emersion 2018-05-23 09:02:19 +01:00
parent 5ba1a9af56
commit e26f4dff98
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
4 changed files with 34 additions and 6 deletions

View file

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

View file

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