wlr_scene: add color transform argument for rendering

master
Manuel Stoeckl 10 months ago committed by Simon Ser
parent ffdbfdbbbd
commit 391410deb5

@ -469,6 +469,7 @@ void wlr_scene_output_set_position(struct wlr_scene_output *scene_output,
struct wlr_scene_output_state_options { struct wlr_scene_output_state_options {
struct wlr_scene_timer *timer; struct wlr_scene_timer *timer;
struct wlr_color_transform *color_transform;
/** /**
* Allows use of a custom swapchain. This can be useful when trying out an * Allows use of a custom swapchain. This can be useful when trying out an

@ -1861,6 +1861,7 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output,
struct wlr_render_pass *render_pass = wlr_renderer_begin_buffer_pass(output->renderer, buffer, struct wlr_render_pass *render_pass = wlr_renderer_begin_buffer_pass(output->renderer, buffer,
&(struct wlr_buffer_pass_options){ &(struct wlr_buffer_pass_options){
.timer = timer ? timer->render_timer : NULL, .timer = timer ? timer->render_timer : NULL,
.color_transform = options->color_transform,
}); });
if (render_pass == NULL) { if (render_pass == NULL) {
wlr_buffer_unlock(buffer); wlr_buffer_unlock(buffer);

Loading…
Cancel
Save