libweston: Remove PAINT_NODE_CONTENT_DIRTY

This was only used by weston_surface_damage(), which we have just
gleefully deleted.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone 2025-05-28 16:41:31 +01:00
parent 816e4180bc
commit 300d059044
2 changed files with 3 additions and 10 deletions

View file

@ -300,7 +300,6 @@ paint_node_update_late(struct weston_paint_node *pnode)
struct weston_surface *surf = pnode->surface;
bool vis_dirty = pnode->status & PAINT_NODE_VISIBILITY_DIRTY;
bool plane_dirty = pnode->status & PAINT_NODE_PLANE_DIRTY;
bool content_dirty = pnode->status & PAINT_NODE_CONTENT_DIRTY;
bool buffer_dirty = pnode->status & PAINT_NODE_BUFFER_DIRTY;
/* The geoemtry may be shrinking, so we shouldn't just
@ -325,16 +324,12 @@ paint_node_update_late(struct weston_paint_node *pnode)
/* If our visible region was dirty, we should damage the entire
* new visible region to ensure a redraw of our content.
*
* If we chanaged planes, we need full visible region damage
* If we changed planes, we need full visible region damage
* on the new plane now that visibility is updated.
*/
if (pnode->plane && (vis_dirty || plane_dirty))
pixman_region32_copy(&pnode->damage, &pnode->visible);
if (content_dirty && pnode->plane)
pixman_region32_union(&pnode->damage,
&pnode->damage, &pnode->visible);
if (plane_dirty) {
assert(pnode->plane_next);
@ -348,7 +343,6 @@ paint_node_update_late(struct weston_paint_node *pnode)
pnode->status &= ~(PAINT_NODE_VISIBILITY_DIRTY |
PAINT_NODE_PLANE_DIRTY |
PAINT_NODE_CONTENT_DIRTY |
PAINT_NODE_BUFFER_DIRTY);
/* Nothing should be able to flip "early" bits between

View file

@ -647,9 +647,8 @@ enum paint_node_status {
PAINT_NODE_VIEW_DIRTY = 1 << 1,
PAINT_NODE_VISIBILITY_DIRTY = 1 << 2,
PAINT_NODE_PLANE_DIRTY = 1 << 3,
PAINT_NODE_CONTENT_DIRTY = 1 << 4,
PAINT_NODE_BUFFER_DIRTY = 1 << 5,
PAINT_NODE_ALL_DIRTY = (1 << 6) - 1,
PAINT_NODE_BUFFER_DIRTY = 1 << 4,
PAINT_NODE_ALL_DIRTY = (1 << 5) - 1,
};
/**