mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 21:48:04 +02:00
compositor: Embed the paint node status when rebuilding z-ordered list
As weston_compositor_build_view_list() marks all the outputs needing a paint node rebuild of the re-order list, embed the paint node status update to ALL_DRITY into straight into weston_output_build_z_order_list(). This way we'll latch it on the view list rebuild. Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
parent
881ac6a5cf
commit
f85008bb86
1 changed files with 2 additions and 3 deletions
|
|
@ -3432,6 +3432,7 @@ weston_output_build_z_order_list(struct weston_compositor *compositor,
|
|||
add_to_z_order_list(output, pnode);
|
||||
}
|
||||
|
||||
output->paint_node_changes = WESTON_PAINT_NODE_ALL_DIRTY;
|
||||
output->paint_node_list_needs_rebuild = false;
|
||||
}
|
||||
|
||||
|
|
@ -3604,10 +3605,8 @@ weston_output_repaint(struct weston_output *output)
|
|||
TL_POINT(ec, TLP_CORE_REPAINT_BEGIN, TLP_OUTPUT(output), TLP_END);
|
||||
|
||||
/* Rebuild the surface list and update surface transforms up front. */
|
||||
if (ec->view_list_needs_rebuild) {
|
||||
if (ec->view_list_needs_rebuild)
|
||||
weston_compositor_build_view_list(ec);
|
||||
output->paint_node_changes = WESTON_PAINT_NODE_ALL_DIRTY;
|
||||
}
|
||||
|
||||
if (output->paint_node_list_needs_rebuild)
|
||||
weston_output_build_z_order_list(ec, output);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue