wayland_shm: Simplify surface commits

We no longer have the concept of a "pre" buffer (allocated but not yet
registered as a wayland buffer)
This commit is contained in:
Derek Foreman 2017-11-08 13:58:07 -06:00
parent b5674b7885
commit 4adf87ae91
1 changed files with 0 additions and 13 deletions

View File

@ -74,7 +74,6 @@ struct _Dmabuf_Surface
int compositor_version;
Dmabuf_Buffer *current;
Dmabuf_Buffer *pre;
Dmabuf_Buffer **buffer;
int nbuf;
@ -667,18 +666,6 @@ _evas_dmabuf_surface_post(Surface *s, Eina_Rectangle *rects, unsigned int count)
b->used = EINA_TRUE;
b->age = 0;
/* If we don't yet have a buffer assignement we need to track the
* most recently filled unassigned buffer and make sure it gets
* displayed.
*/
if (surface->pre) surface->pre->busy = EINA_FALSE;
if (!b->wl_buffer)
{
surface->pre = b;
return;
}
surface->pre = NULL;
win = s->info->info.wl2_win;
wls = ecore_wl2_window_surface_get(win);