From e2763565b6d50d4d11d73bdab92f84d03648edf4 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Wed, 5 Jun 2024 14:44:30 -0500 Subject: [PATCH] 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 --- libweston/compositor.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libweston/compositor.c b/libweston/compositor.c index f96092bb..a1fbef21 100644 --- a/libweston/compositor.c +++ b/libweston/compositor.c @@ -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); }