compositor: Pass a mask to weston_surface_dirty_paint_nodes

For now we're just continuing to make the view dirty, but there will be
more dirt in the future.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2024-06-05 14:44:30 -05:00 committed by Marius Vlad
parent 71079ffd1a
commit e2763565b6
1 changed files with 5 additions and 3 deletions

View File

@ -143,14 +143,15 @@ weston_view_dirty_paint_nodes(struct weston_view *view)
}
static void
weston_surface_dirty_paint_nodes(struct weston_surface *surface)
weston_surface_dirty_paint_nodes(struct weston_surface *surface,
enum paint_node_status status)
{
struct weston_paint_node *node;
wl_list_for_each(node, &surface->paint_node_list, surface_link) {
assert(node->surface == surface);
node->status |= PAINT_NODE_VIEW_DIRTY;
node->status |= status;
}
}
@ -4594,7 +4595,8 @@ weston_surface_commit_state(struct weston_surface *surface,
&surface->surface_to_buffer_matrix);
weston_matrix_invert(&surface->buffer_to_surface_matrix,
&surface->surface_to_buffer_matrix);
weston_surface_dirty_paint_nodes(surface);
weston_surface_dirty_paint_nodes(surface,
PAINT_NODE_VIEW_DIRTY);
weston_surface_update_size(surface);
}