mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-25 06:59:42 -05:00
export-dmabuf: wait for the frame to be ready, send timestamp
This commit is contained in:
parent
5ba1a9af56
commit
e26f4dff98
4 changed files with 34 additions and 6 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue