wlr_scene: Add frame_done signal for wlr_scene_buffer

Let's also change the name of the function. Motivation [1].

[1] https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3496#note_1357824
This commit is contained in:
Alexander Orzechowski 2022-05-19 14:23:10 -04:00
parent a53eccf2af
commit 09c7fe0f90
2 changed files with 28 additions and 6 deletions

View file

@ -115,6 +115,7 @@ struct wlr_scene_buffer {
struct wl_signal output_enter; // struct wlr_scene_output
struct wl_signal output_leave; // struct wlr_scene_output
struct wl_signal output_present; // struct wlr_scene_output
struct wl_signal frame_done; // struct timespec
} events;
/**
@ -319,6 +320,12 @@ void wlr_scene_buffer_set_dest_size(struct wlr_scene_buffer *scene_buffer,
void wlr_scene_buffer_set_transform(struct wlr_scene_buffer *scene_buffer,
enum wl_output_transform transform);
/**
* Calls the buffer's frame_done signal.
*/
void wlr_scene_buffer_send_frame_done(struct wlr_scene_buffer *scene_buffer,
struct timespec *now);
/**
* Add a viewport for the specified output to the scene-graph.
*