summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-03-09 14:31:25 -0600
committerDerek Foreman <derekf@osg.samsung.com>2018-04-20 13:00:28 -0500
commit52e2ef8b227ec08199c29ff64cbf5fcdd72f1dd5 (patch)
treed36747444158bba8f41093ec332ee2404c072c81 /src
parent3acd8cdf8045fa908325ebfd6d790557677894e5 (diff)
ecore_wl2: Add ecore_wl2_buffer_lock
Currently we're making mapping implicitly take a lock.
Diffstat (limited to 'src')
-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);