diff --git a/include/libweston/libweston.h b/include/libweston/libweston.h index 77371f5c..f4641c44 100644 --- a/include/libweston/libweston.h +++ b/include/libweston/libweston.h @@ -444,7 +444,6 @@ enum weston_output_power_state { struct weston_plane { struct weston_compositor *compositor; - pixman_region32_t clip; int32_t x, y; struct wl_list link; }; diff --git a/libweston/compositor.c b/libweston/compositor.c index 2d864463..35d2a57c 100644 --- a/libweston/compositor.c +++ b/libweston/compositor.c @@ -3012,8 +3012,6 @@ output_update_visibility(struct weston_output *output) pixman_region32_init(&clip); wl_list_for_each(plane, &ec->plane_list, link) { - pixman_region32_copy(&plane->clip, &clip); - pixman_region32_init(&opaque); wl_list_for_each(pnode, &output->paint_node_z_order_list, @@ -3268,7 +3266,6 @@ weston_output_flush_damage_for_plane(struct weston_output *output, pixman_region32_clear(&pnode->damage); } pixman_region32_intersect(damage, damage, &output->region); - pixman_region32_subtract(damage, damage, &plane->clip); return changed; } @@ -5664,7 +5661,6 @@ idle_handler(void *data) WL_EXPORT void weston_plane_init(struct weston_plane *plane, struct weston_compositor *ec) { - pixman_region32_init(&plane->clip); plane->x = 0; plane->y = 0; plane->compositor = ec; @@ -5679,8 +5675,6 @@ weston_plane_release(struct weston_plane *plane) { struct weston_output *output; - pixman_region32_fini(&plane->clip); - wl_list_for_each(output, &plane->compositor->output_list, link) { struct weston_paint_node *node;