output: don't rebuild cursor color transform for each update

This commit is contained in:
Félix Poisot 2025-11-23 11:03:30 +00:00 committed by Simon Ser
parent 7101a69804
commit 811765ffa0
4 changed files with 43 additions and 19 deletions

View file

@ -22,6 +22,8 @@ bool output_cursor_set_texture(struct wlr_output_cursor *cursor,
int dst_width, int dst_height, enum wl_output_transform transform,
int32_t hotspot_x, int32_t hotspot_y, struct wlr_drm_syncobj_timeline *wait_timeline,
uint64_t wait_point);
bool output_cursor_refresh_color_transform(struct wlr_output_cursor *cursor,
const struct wlr_output_image_description *img_desc);
void output_defer_present(struct wlr_output *output, struct wlr_output_event_present event);