mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 06:28:01 +02:00
pixman-renderer: iterate paint nodes
Iterate paint nodes instead of the global view list. Right now this does not change behavior. This is a step towards using per-output view lists that can then be optimized for the output in libweston core. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
parent
2fddc539c5
commit
e02dbf650b
1 changed files with 6 additions and 4 deletions
|
|
@ -517,11 +517,13 @@ static void
|
|||
repaint_surfaces(struct weston_output *output, pixman_region32_t *damage)
|
||||
{
|
||||
struct weston_compositor *compositor = output->compositor;
|
||||
struct weston_view *view;
|
||||
struct weston_paint_node *pnode;
|
||||
|
||||
wl_list_for_each_reverse(view, &compositor->view_list, link)
|
||||
if (view->plane == &compositor->primary_plane)
|
||||
draw_view(view, output, damage);
|
||||
wl_list_for_each_reverse(pnode, &output->paint_node_z_order_list,
|
||||
z_order_link) {
|
||||
if (pnode->view->plane == &compositor->primary_plane)
|
||||
draw_view(pnode->view, output, damage);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue