libweston: Remove weston_surface_damage()

There is no valid reason for anyone to call this.

True surface damage is already handled when surfaces are committed. View
damage is already handled through any per-view manipulation which would
generate damage. There is thus no reason for anyone to ever call this.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone 2025-05-28 15:46:17 +01:00
parent 653182759f
commit 816e4180bc
2 changed files with 0 additions and 14 deletions

View file

@ -2193,9 +2193,6 @@ void
weston_surface_set_size(struct weston_surface *surface, weston_surface_set_size(struct weston_surface *surface,
int32_t width, int32_t height); int32_t width, int32_t height);
void
weston_surface_damage(struct weston_surface *surface);
void void
weston_view_damage_below(struct weston_view *view); weston_view_damage_below(struct weston_view *view);

View file

@ -2071,17 +2071,6 @@ weston_view_schedule_repaint(struct weston_view *view)
weston_output_schedule_repaint(output); weston_output_schedule_repaint(output);
} }
WL_EXPORT void
weston_surface_damage(struct weston_surface *surface)
{
struct weston_paint_node *pnode;
wl_list_for_each(pnode, &surface->paint_node_list, surface_link)
pnode->status |= PAINT_NODE_CONTENT_DIRTY;
weston_surface_schedule_repaint(surface);
}
WL_EXPORT void WL_EXPORT void
weston_view_set_rel_position(struct weston_view *view, weston_view_set_rel_position(struct weston_view *view,
struct weston_coord_surface offset) struct weston_coord_surface offset)