mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 09:00:42 -05:00
wayland/surface: Send buffer release events immediately
Just queuing the buffer release event is prone to starvation, so send the release immediately. See https://lists.freedesktop.org/archives/wayland-devel/2017-September/035147.html for more detailed explanation. https://bugzilla.gnome.org/show_bug.cgi?id=788197
This commit is contained in:
parent
c9c157ed64
commit
4eb8d71311
@ -448,7 +448,7 @@ meta_wayland_surface_unref_buffer_use_count (MetaWaylandSurface *surface)
|
|||||||
g_return_if_fail (buffer);
|
g_return_if_fail (buffer);
|
||||||
|
|
||||||
if (surface->buffer_ref.use_count == 0 && buffer->resource)
|
if (surface->buffer_ref.use_count == 0 && buffer->resource)
|
||||||
wl_resource_queue_event (buffer->resource, WL_BUFFER_RELEASE);
|
wl_buffer_send_release (buffer->resource);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user