aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-05-19 14:23:10 -0400
committerAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-05-19 14:23:10 -0400
commit09c7fe0f904d4e91cce2a9414e2bcfe050f0c8d4 (patch)
tree4877eb25bc198920dd7f0d58d777fa02e2e14809 /include/wlr
parenta53eccf2af16cef55bb5ad85204545601584e15e (diff)
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
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_scene.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h
index a4d05274..6e7b3440 100644
--- a/include/wlr/types/wlr_scene.h
+++ b/include/wlr/types/wlr_scene.h
@@ -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;
/**
@@ -320,6 +321,12 @@ 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.
*
* An output can only be added once to the scene-graph.