aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-06-11 10:22:55 -0400
committerSimon Ser <contact@emersion.fr>2023-06-12 14:13:09 +0200
commit05dd08afe569083c24a1c0a416b7dc593a41c14b (patch)
tree56cf54b19558b74ce7026f7d860c27b40bc50e16 /include
parent7e67b8152b945270aa6b3d7203f5724439024cc4 (diff)
scene: introduce wlr_scene_output_build_state()
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_scene.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h
index 87cf4fc9..c1b6f130 100644
--- a/include/wlr/types/wlr_scene.h
+++ b/include/wlr/types/wlr_scene.h
@@ -39,6 +39,7 @@ struct wlr_scene_buffer;
struct wlr_presentation;
struct wlr_linux_dmabuf_v1;
+struct wlr_output_state;
typedef bool (*wlr_scene_buffer_point_accepts_input_func_t)(
struct wlr_scene_buffer *buffer, int sx, int sy);
@@ -444,10 +445,18 @@ void wlr_scene_output_destroy(struct wlr_scene_output *scene_output);
*/
void wlr_scene_output_set_position(struct wlr_scene_output *scene_output,
int lx, int ly);
+
/**
* Render and commit an output.
*/
bool wlr_scene_output_commit(struct wlr_scene_output *scene_output);
+
+/**
+ * Render and populate given output state.
+ */
+bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output,
+ struct wlr_output_state *state);
+
/**
* Call wlr_surface_send_frame_done() on all surfaces in the scene rendered by
* wlr_scene_output_commit() for which wlr_scene_surface.primary_output