From ae7bad86dd04133037e62e670ff2c6999c19f315 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Fri, 9 Jun 2023 05:39:48 -0400 Subject: output: introduce wlr_output_state_set_damage() --- include/wlr/types/wlr_output.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index 93943f0d..3ca8863a 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -573,6 +573,13 @@ void wlr_output_state_set_buffer(struct wlr_output_state *state, struct wlr_buffer *buffer); bool wlr_output_state_set_gamma_lut(struct wlr_output_state *state, size_t ramp_size, const uint16_t *r, const uint16_t *g, const uint16_t *b); +/** + * Sets the state's damage region. + * + * This should be called in along with wlr_output_state_set_buffer(). + */ +void wlr_output_state_set_damage(struct wlr_output_state *state, + const pixman_region32_t *damage); /** -- cgit v1.2.3