compositor: Add a new member to the weston_paint_node

Add a boolean member named need_hole in weston_paint_node, which is used
to indicate whether the renderer should draw through hole on primary
plane when rendering.

For paint node whose view are placed on the underlay plane, this
member should be set to true, otherwise it is false.

Signed-off-by: Chao Guo <chao.guo@nxp.com>
This commit is contained in:
Chao Guo 2023-11-02 17:05:24 +09:00 committed by Marius Vlad
parent 1c7cf4796a
commit e1594110f0
2 changed files with 3 additions and 0 deletions

View File

@ -380,6 +380,7 @@ weston_paint_node_create(struct weston_surface *surface,
pnode->plane = &pnode->output->primary_plane;
pnode->plane_next = NULL;
pnode->need_hole = false;
pnode->status = PAINT_NODE_ALL_DIRTY & ~PAINT_NODE_PLANE_DIRTY;
return pnode;

View File

@ -561,6 +561,8 @@ struct weston_paint_node {
bool is_direct;
bool draw_solid;
struct weston_solid_buffer_values solid;
bool need_hole;
};
struct weston_paint_node *