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:59:34 -0600
committerDerek Foreman <derekf@osg.samsung.com>2018-01-26 15:53:59 -0600
commitebcce5aefaef99e843e8324caf863b31f3b653d9 (patch)
tree3f67fcff48effc54b0059ff321f6447305cd637c /src/lib/ecore_wl2/ecore_wl2_buffer.c
parente3a3e020421cc571dc4a063a2dad5271e2606005 (diff)
ecore_wl2: Add API for setting buffer busy 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 55b665d4ae..dfd63a8a1a 100644
--- a/src/lib/ecore_wl2/ecore_wl2_buffer.c
+++ b/src/lib/ecore_wl2/ecore_wl2_buffer.c
@@ -680,6 +680,14 @@ ecore_wl2_buffer_busy_get(Ecore_Wl2_Buffer *buffer)
680 return (buffer->locked) || (buffer->busy); 680 return (buffer->locked) || (buffer->busy);
681} 681}
682 682
683EAPI void
684ecore_wl2_buffer_busy_set(Ecore_Wl2_Buffer *buffer)
685{
686 EINA_SAFETY_ON_NULL_RETURN(buffer);
687
688 buffer->busy = EINA_TRUE;
689}
690
683static Ecore_Wl2_Buffer * 691static Ecore_Wl2_Buffer *
684_ecore_wl2_buffer_partial_create(int w, int h, Eina_Bool alpha) 692_ecore_wl2_buffer_partial_create(int w, int h, Eina_Bool alpha)
685{ 693{