wayland_shm: Stop using the evas directly to block for async render

Use the new fence function instead.

This makes Cedric less unhappy.
This commit is contained in:
Derek Foreman 2017-04-26 14:16:37 -05:00
parent 83adbadc89
commit 92e65ba3c7
1 changed files with 1 additions and 3 deletions

View File

@ -413,7 +413,6 @@ static const struct wl_buffer_listener buffer_listener =
static void
_fallback(Dmabuf_Surface *s, int w, int h)
{
Evas_Public_Data *epd;
Dmabuf_Buffer *b;
Surface *surf;
Eina_Bool recovered;
@ -446,8 +445,7 @@ _fallback(Dmabuf_Surface *s, int w, int h)
if (!b->mapping) goto out;
epd = efl_data_scope_get(surf->info->evas, EVAS_CANVAS_CLASS);
while (epd && epd->rendering) evas_async_events_process_blocking();
evas_thread_queue_wait();
old_data = b->mapping;
surf->funcs.assign(surf);