summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-11-08 13:58:07 -0600
committerDerek Foreman <derekf@osg.samsung.com>2017-11-08 15:12:51 -0600
commit4adf87ae91e56a97fa85694855d90e08c41b83e2 (patch)
treec17a36b3d79478234c2fc44c19c2c3cd4c327036 /src
parentb5674b788539b9e0aa5ed1e11fe4d38de9a4772c (diff)
wayland_shm: Simplify surface commits
We no longer have the concept of a "pre" buffer (allocated but not yet registered as a wayland buffer)
Diffstat (limited to 'src')
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_dmabuf.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_dmabuf.c b/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
index ffa65e9ff2..2d263de0c1 100644
--- a/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
+++ b/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
@@ -74,7 +74,6 @@ struct _Dmabuf_Surface
74 int compositor_version; 74 int compositor_version;
75 75
76 Dmabuf_Buffer *current; 76 Dmabuf_Buffer *current;
77 Dmabuf_Buffer *pre;
78 Dmabuf_Buffer **buffer; 77 Dmabuf_Buffer **buffer;
79 int nbuf; 78 int nbuf;
80 79
@@ -667,18 +666,6 @@ _evas_dmabuf_surface_post(Surface *s, Eina_Rectangle *rects, unsigned int count)
667 b->used = EINA_TRUE; 666 b->used = EINA_TRUE;
668 b->age = 0; 667 b->age = 0;
669 668
670 /* If we don't yet have a buffer assignement we need to track the
671 * most recently filled unassigned buffer and make sure it gets
672 * displayed.
673 */
674 if (surface->pre) surface->pre->busy = EINA_FALSE;
675 if (!b->wl_buffer)
676 {
677 surface->pre = b;
678 return;
679 }
680 surface->pre = NULL;
681
682 win = s->info->info.wl2_win; 669 win = s->info->info.wl2_win;
683 wls = ecore_wl2_window_surface_get(win); 670 wls = ecore_wl2_window_surface_get(win);
684 671