mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-06 09:08:33 +02:00
compositor: Consider punch holes when flushing damage
Signed-off-by: Chao Guo <chao.guo@nxp.com>
This commit is contained in:
parent
0000c491f4
commit
99eff1276a
1 changed files with 7 additions and 2 deletions
|
|
@ -3601,8 +3601,13 @@ weston_output_flush_damage_for_plane(struct weston_output *output,
|
|||
|
||||
wl_list_for_each(pnode, &output->paint_node_z_order_list,
|
||||
z_order_link) {
|
||||
if (pnode->plane != plane)
|
||||
continue;
|
||||
if (pnode->plane != plane) {
|
||||
if (plane != &output->primary_plane)
|
||||
continue;
|
||||
/* For primary plane, add the damage of nodes need holes. */
|
||||
if (!pnode->need_hole)
|
||||
continue;
|
||||
}
|
||||
changed = true;
|
||||
|
||||
/* We can safely clip paint node damage to visible region
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue