mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 12:50:11 +01:00
compositor: Remove obsolete clip region calculation
This was missed in e169b77430
when leaving planes in the scene graph meant we no longer needed
to calculate this clip.
It's just a few wasted cycles, so no backport required.
Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
parent
58298e2346
commit
3ec1e38a62
1 changed files with 2 additions and 8 deletions
|
|
@ -3240,21 +3240,15 @@ output_update_visibility(struct weston_output *output)
|
||||||
{
|
{
|
||||||
WESTON_TRACE_FUNC();
|
WESTON_TRACE_FUNC();
|
||||||
struct weston_paint_node *pnode;
|
struct weston_paint_node *pnode;
|
||||||
pixman_region32_t opaque, clip;
|
pixman_region32_t opaque;
|
||||||
|
|
||||||
pixman_region32_init(&clip);
|
|
||||||
|
|
||||||
pixman_region32_init(&opaque);
|
pixman_region32_init(&opaque);
|
||||||
|
|
||||||
wl_list_for_each(pnode, &output->paint_node_z_order_list,
|
wl_list_for_each(pnode, &output->paint_node_z_order_list,
|
||||||
z_order_link) {
|
z_order_link)
|
||||||
paint_node_update_visible(pnode, &opaque);
|
paint_node_update_visible(pnode, &opaque);
|
||||||
|
|
||||||
pixman_region32_union(&clip, &clip, &opaque);
|
|
||||||
}
|
|
||||||
|
|
||||||
pixman_region32_fini(&opaque);
|
pixman_region32_fini(&opaque);
|
||||||
pixman_region32_fini(&clip);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue