summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2_buffer.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_buffer.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_buffer.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_buffer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_buffer.c b/src/lib/ecore_wl2/ecore_wl2_buffer.c
index 4fa905e5ff..55b665d4ae 100644
--- a/src/lib/ecore_wl2/ecore_wl2_buffer.c
+++ b/src/lib/ecore_wl2/ecore_wl2_buffer.c
@@ -672,6 +672,14 @@ ecore_wl2_buffer_destroy(Ecore_Wl2_Buffer *b)
672 free(b); 672 free(b);
673} 673}
674 674
675EAPI Eina_Bool
676ecore_wl2_buffer_busy_get(Ecore_Wl2_Buffer *buffer)
677{
678 EINA_SAFETY_ON_NULL_RETURN_VAL(buffer, EINA_FALSE);
679
680 return (buffer->locked) || (buffer->busy);
681}
682
675static Ecore_Wl2_Buffer * 683static Ecore_Wl2_Buffer *
676_ecore_wl2_buffer_partial_create(int w, int h, Eina_Bool alpha) 684_ecore_wl2_buffer_partial_create(int w, int h, Eina_Bool alpha)
677{ 685{