summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ecore_wl2/Ecore_Wl2.h1
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_buffer.c6
2 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index b2024f0876..ff1b84ee68 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -1992,6 +1992,7 @@ EAPI struct wl_buffer *ecore_wl2_buffer_wl_buffer_get(Ecore_Wl2_Buffer *buf);
1992EAPI void *ecore_wl2_buffer_map(Ecore_Wl2_Buffer *buf, int *w, int *h, int *stride); 1992EAPI void *ecore_wl2_buffer_map(Ecore_Wl2_Buffer *buf, int *w, int *h, int *stride);
1993EAPI void ecore_wl2_buffer_unmap(Ecore_Wl2_Buffer *buf); 1993EAPI void ecore_wl2_buffer_unmap(Ecore_Wl2_Buffer *buf);
1994EAPI void ecore_wl2_buffer_discard(Ecore_Wl2_Buffer *buf); 1994EAPI void ecore_wl2_buffer_discard(Ecore_Wl2_Buffer *buf);
1995EAPI void ecore_wl2_buffer_lock(Ecore_Wl2_Buffer *b);
1995EAPI void ecore_wl2_buffer_unlock(Ecore_Wl2_Buffer *b); 1996EAPI void ecore_wl2_buffer_unlock(Ecore_Wl2_Buffer *b);
1996EAPI void ecore_wl2_buffer_destroy(Ecore_Wl2_Buffer *b); 1997EAPI void ecore_wl2_buffer_destroy(Ecore_Wl2_Buffer *b);
1997EAPI Eina_Bool ecore_wl2_buffer_busy_get(Ecore_Wl2_Buffer *buffer); 1998EAPI Eina_Bool ecore_wl2_buffer_busy_get(Ecore_Wl2_Buffer *buffer);
diff --git a/src/lib/ecore_wl2/ecore_wl2_buffer.c b/src/lib/ecore_wl2/ecore_wl2_buffer.c
index 19f8bb5e7e..1db05f1164 100644
--- a/src/lib/ecore_wl2/ecore_wl2_buffer.c
+++ b/src/lib/ecore_wl2/ecore_wl2_buffer.c
@@ -665,6 +665,12 @@ ecore_wl2_buffer_discard(Ecore_Wl2_Buffer *buf)
665} 665}
666 666
667EAPI void 667EAPI void
668ecore_wl2_buffer_lock(Ecore_Wl2_Buffer *b)
669{
670 b->locked = EINA_TRUE;
671}
672
673EAPI void
668ecore_wl2_buffer_unlock(Ecore_Wl2_Buffer *b) 674ecore_wl2_buffer_unlock(Ecore_Wl2_Buffer *b)
669{ 675{
670 ecore_wl2_buffer_unmap(b); 676 ecore_wl2_buffer_unmap(b);