summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2_surface.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-01-25 15:58:35 -0600
committerDerek Foreman <derekf@osg.samsung.com>2018-01-26 15:53:59 -0600
commite3a3e020421cc571dc4a063a2dad5271e2606005 (patch)
treef0220c72d2efdbb90f053fe1ff2a2dc223e8052a /src/lib/ecore_wl2/ecore_wl2_surface.c
parent1c2bb7bda72f8122d6ae75ae346b9d2a321afb6f (diff)
ecore_wl2: Add API for querying buffer lock status and use it
Since surfaces will be managed by plug-ins, we need to make sure they don't rely on internal structures.
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_surface.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_surface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_surface.c b/src/lib/ecore_wl2/ecore_wl2_surface.c
index b7cda2f7a3..ff561c2edf 100644
--- a/src/lib/ecore_wl2/ecore_wl2_surface.c
+++ b/src/lib/ecore_wl2/ecore_wl2_surface.c
@@ -87,7 +87,7 @@ _evas_dmabuf_surface_wait(Ecore_Wl2_Surface *s)
87 87
88 EINA_LIST_FOREACH(s->buffers, l, b) 88 EINA_LIST_FOREACH(s->buffers, l, b)
89 { 89 {
90 if (b->locked || b->busy) continue; 90 if (ecore_wl2_buffer_busy_get(b)) continue;
91 if (b->age > best_age) 91 if (b->age > best_age)
92 { 92 {
93 best = b; 93 best = b;