From 587852056c0475f0075a118a352085920a41d0d2 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 30 Jan 2023 16:39:16 +0100 Subject: output: add wlr_output_add_software_cursors_to_render_pass() Same as wlr_output_render_software_cursors(), but takes a struct wlr_render_pass. --- include/wlr/types/wlr_output.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index 767418bd..dbf7524a 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -112,6 +112,7 @@ struct wlr_output_state { }; struct wlr_output_impl; +struct wlr_render_pass; /** * A compositor output region. This typically corresponds to a monitor that @@ -515,6 +516,13 @@ void wlr_output_lock_software_cursors(struct wlr_output *output, bool lock); */ void wlr_output_render_software_cursors(struct wlr_output *output, const pixman_region32_t *damage); +/** + * Render software cursors. + * + * This is a utility function that can be called when compositors render. + */ +void wlr_output_add_software_cursors_to_render_pass(struct wlr_output *output, + struct wlr_render_pass *render_pass, const pixman_region32_t *damage); /** * Get the set of DRM formats suitable for the primary buffer, assuming a * buffer with the specified capabilities. -- cgit v1.2.3