From 98253554c8c9beb06db9d0e86f2968a60f5a0f17 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Wed, 2 Jul 2025 15:30:12 -0500 Subject: [PATCH] compositor: Remove weston_subsurface_synchronized_commit This is now just a call to weston_subsurface_commit_from_cache, so just call that directly. Signed-off-by: Derek Foreman --- libweston/compositor.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/libweston/compositor.c b/libweston/compositor.c index 969e95b00..21f8d0f75 100644 --- a/libweston/compositor.c +++ b/libweston/compositor.c @@ -5458,18 +5458,6 @@ weston_subsurface_commit(struct weston_subsurface *sub) return weston_subsurface_commit_from_cache(sub); } -static enum weston_surface_status -weston_subsurface_synchronized_commit(struct weston_subsurface *sub) -{ - /* From now on, commit_from_cache the whole sub-tree, regardless of - * the synchronized mode of each child. This sub-surface or some - * of its ancestors were synchronized, so we are synchronized - * all the way down. - */ - - return weston_subsurface_commit_from_cache(sub); -} - static enum weston_surface_status weston_subsurface_parent_apply(struct weston_subsurface *sub) { @@ -5485,7 +5473,7 @@ weston_subsurface_parent_apply(struct weston_subsurface *sub) } if (sub->effectively_synchronized) - status = weston_subsurface_synchronized_commit(sub); + status = weston_subsurface_commit_from_cache(sub); return status; } @@ -5935,7 +5923,7 @@ subsurface_set_desync(struct wl_client *client, struct wl_resource *resource) /* If sub became effectively desynchronized, flush. */ if (!sub->effectively_synchronized) - weston_subsurface_synchronized_commit(sub); + weston_subsurface_commit_from_cache(sub); } }