mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 05:28:05 +02:00
compositor-drm: Don't need safe view-list traversal
Nothing in this loop reorders views within the compositor's view_list. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
parent
e1c69be672
commit
c3fcb5bed5
1 changed files with 2 additions and 2 deletions
|
|
@ -3061,7 +3061,7 @@ drm_assign_planes(struct weston_output *output_base, void *repaint_data)
|
|||
struct drm_output *output = to_drm_output(output_base);
|
||||
struct drm_output_state *state;
|
||||
struct drm_plane_state *plane_state;
|
||||
struct weston_view *ev, *next;
|
||||
struct weston_view *ev;
|
||||
pixman_region32_t overlap, surface_overlap;
|
||||
struct weston_plane *primary, *next_plane;
|
||||
bool picked_scanout = false;
|
||||
|
|
@ -3087,7 +3087,7 @@ drm_assign_planes(struct weston_output *output_base, void *repaint_data)
|
|||
pixman_region32_init(&overlap);
|
||||
primary = &output_base->compositor->primary_plane;
|
||||
|
||||
wl_list_for_each_safe(ev, next, &output_base->compositor->view_list, link) {
|
||||
wl_list_for_each(ev, &output_base->compositor->view_list, link) {
|
||||
struct weston_surface *es = ev->surface;
|
||||
|
||||
/* Test whether this buffer can ever go into a plane:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue