mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-21 22:52:20 +00:00
wlr_scene: add color transform argument for rendering
This commit is contained in:
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_timer *timer;
|
||||
struct wlr_color_transform *color_transform;
|
||||
|
||||
/**
|
||||
* 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_buffer_pass_options){
|
||||
.timer = timer ? timer->render_timer : NULL,
|
||||
.color_transform = options->color_transform,
|
||||
});
|
||||
if (render_pass == NULL) {
|
||||
wlr_buffer_unlock(buffer);
|
||||
|
Loading…
Reference in New Issue
Block a user