core: Remove flush_damage_for_plane return

Nothing uses this, and it was also being set incorrectly, as it would
return true when there was no damage to actually be flushed.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone 2025-10-13 18:06:15 +01:00 committed by Derek Foreman
parent 64c938f5d6
commit 562a368fbd
2 changed files with 2 additions and 6 deletions

View file

@ -343,7 +343,7 @@ void
notify_tablet_tool_frame(struct weston_tablet_tool *tool,
const struct timespec *time);
bool
void
weston_output_flush_damage_for_plane(struct weston_output *output,
struct weston_plane *plane,
pixman_region32_t *damage);

View file

@ -3526,13 +3526,12 @@ weston_output_put_back_feedback_list(struct weston_output *output)
wl_list_init(&output->feedback_list);
}
WL_EXPORT bool
WL_EXPORT void
weston_output_flush_damage_for_plane(struct weston_output *output,
struct weston_plane *plane,
pixman_region32_t *damage)
{
struct weston_paint_node *pnode;
bool changed = false;
wl_list_for_each(pnode, &output->paint_node_z_order_list,
z_order_link) {
@ -3543,8 +3542,6 @@ weston_output_flush_damage_for_plane(struct weston_output *output,
if (!pnode->need_hole)
continue;
}
changed = true;
/* We can safely clip paint node damage to visible region
* here, as we're only dealing with nodes on this output,
* and the visibility regions for paint nodes on this
@ -3555,7 +3552,6 @@ weston_output_flush_damage_for_plane(struct weston_output *output,
pixman_region32_clear(&pnode->damage);
}
pixman_region32_intersect(damage, damage, &output->region);
return changed;
}
WL_EXPORT void