mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-06 09:08:33 +02:00
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 <derek.foreman@collabora.com>
This commit is contained in:
parent
93ad388414
commit
98253554c8
1 changed files with 2 additions and 14 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue