diff options
author | Simon Ser <contact@emersion.fr> | 2023-01-30 16:39:16 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-04-25 17:26:34 +0200 |
commit | 587852056c0475f0075a118a352085920a41d0d2 (patch) | |
tree | 0f9af3dfd1ea18e20ead9cc0880a6ecbf0efdc82 /include/wlr | |
parent | 471249ae4f84f3f34877a1dbf20b94ba0cb0a9f0 (diff) |
output: add wlr_output_add_software_cursors_to_render_pass()
Same as wlr_output_render_software_cursors(), but takes a
struct wlr_render_pass.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_output.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ -516,6 +517,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. * |