mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
wlr_scene: Inline output_state_apply_damage
(cherry picked from commit 3e1358fec9)
This commit is contained in:
parent
f9de859194
commit
a4cafc1ef5
1 changed files with 1 additions and 8 deletions
|
|
@ -1587,13 +1587,6 @@ static bool construct_render_list_iterator(struct wlr_scene_node *node,
|
|||
return false;
|
||||
}
|
||||
|
||||
static void output_state_apply_damage(const struct render_data *data,
|
||||
struct wlr_output_state *state) {
|
||||
struct wlr_scene_output *output = data->output;
|
||||
|
||||
wlr_output_state_set_damage(state, &output->pending_commit_damage);
|
||||
}
|
||||
|
||||
static void scene_buffer_send_dmabuf_feedback(const struct wlr_scene *scene,
|
||||
struct wlr_scene_buffer *scene_buffer,
|
||||
const struct wlr_linux_dmabuf_feedback_v1_init_options *options) {
|
||||
|
|
@ -1855,7 +1848,7 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output,
|
|||
pixman_region32_fini(&acc_damage);
|
||||
}
|
||||
|
||||
output_state_apply_damage(&render_data, state);
|
||||
wlr_output_state_set_damage(state, &scene_output->pending_commit_damage);
|
||||
|
||||
// We only want to try direct scanout if:
|
||||
// - There is only one entry in the render list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue