summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-03-09 14:32:20 -0600
committerDerek Foreman <derekf@osg.samsung.com>2018-04-20 13:00:28 -0500
commit1fddfdfaae2d9a09e2b84ac73abd4fec825ea744 (patch)
treee9c628329874b23d733a298cbb312db5387e7f3e /src
parent52e2ef8b227ec08199c29ff64cbf5fcdd72f1dd5 (diff)
ecore_wl2: Add lock/unlock function pointers to buffers
For backend specific lock/unlock behaviour
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_buffer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_buffer.c b/src/lib/ecore_wl2/ecore_wl2_buffer.c
index 1db05f1164..7db37035a4 100644
--- a/src/lib/ecore_wl2/ecore_wl2_buffer.c
+++ b/src/lib/ecore_wl2/ecore_wl2_buffer.c
@@ -39,6 +39,8 @@ struct _Buffer_Manager
39 void *(*map)(Ecore_Wl2_Buffer *buf); 39 void *(*map)(Ecore_Wl2_Buffer *buf);
40 void (*unmap)(Ecore_Wl2_Buffer *buf); 40 void (*unmap)(Ecore_Wl2_Buffer *buf);
41 void (*discard)(Ecore_Wl2_Buffer *buf); 41 void (*discard)(Ecore_Wl2_Buffer *buf);
42 void (*lock)(Ecore_Wl2_Buffer *buf);
43 void (*unlock)(Ecore_Wl2_Buffer *buf);
42 void (*manager_destroy)(void); 44 void (*manager_destroy)(void);
43 void *priv; 45 void *priv;
44 void *dl_handle; 46 void *dl_handle;
@@ -667,12 +669,14 @@ ecore_wl2_buffer_discard(Ecore_Wl2_Buffer *buf)
667EAPI void 669EAPI void
668ecore_wl2_buffer_lock(Ecore_Wl2_Buffer *b) 670ecore_wl2_buffer_lock(Ecore_Wl2_Buffer *b)
669{ 671{
672 if (buffer_manager->lock) buffer_manager->lock(b);
670 b->locked = EINA_TRUE; 673 b->locked = EINA_TRUE;
671} 674}
672 675
673EAPI void 676EAPI void
674ecore_wl2_buffer_unlock(Ecore_Wl2_Buffer *b) 677ecore_wl2_buffer_unlock(Ecore_Wl2_Buffer *b)
675{ 678{
679 if (buffer_manager->unlock) buffer_manager->unlock(b);
676 ecore_wl2_buffer_unmap(b); 680 ecore_wl2_buffer_unmap(b);
677 b->mapping = NULL; 681 b->mapping = NULL;
678 b->locked = EINA_FALSE; 682 b->locked = EINA_FALSE;