forked from enlightenment/efl
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:
parent
b5674b7885
commit
4adf87ae91
|
@ -74,7 +74,6 @@ struct _Dmabuf_Surface
|
||||||
int compositor_version;
|
int compositor_version;
|
||||||
|
|
||||||
Dmabuf_Buffer *current;
|
Dmabuf_Buffer *current;
|
||||||
Dmabuf_Buffer *pre;
|
|
||||||
Dmabuf_Buffer **buffer;
|
Dmabuf_Buffer **buffer;
|
||||||
int nbuf;
|
int nbuf;
|
||||||
|
|
||||||
|
@ -667,18 +666,6 @@ _evas_dmabuf_surface_post(Surface *s, Eina_Rectangle *rects, unsigned int count)
|
||||||
b->used = EINA_TRUE;
|
b->used = EINA_TRUE;
|
||||||
b->age = 0;
|
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;
|
win = s->info->info.wl2_win;
|
||||||
wls = ecore_wl2_window_surface_get(win);
|
wls = ecore_wl2_window_surface_get(win);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue