summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-11-06 17:00:46 -0600
committerDerek Foreman <derekf@osg.samsung.com>2017-11-08 15:12:42 -0600
commit381bb0e7988a6d59f4527b971574ab044f052a51 (patch)
treee1c53bc9f17f4520b70eabbaeaecaa8de261d1f7
parentef1279465fb61a01ff39a474c5d0cb47ba9475a3 (diff)
wayland_shm: move buffer release callback to top of file
Code motion with no functional changes.
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_dmabuf.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_dmabuf.c b/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
index 5f9de0e7e4..a956b6a2d1 100644
--- a/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
+++ b/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
@@ -101,6 +101,20 @@ static void (*sym_exynos_device_destroy)(struct exynos_device *) = NULL;
101 101
102static struct wl_buffer * _evas_dmabuf_wl_buffer_from_dmabuf(Ecore_Wl2_Display *disp, Dmabuf_Buffer *db); 102static struct wl_buffer * _evas_dmabuf_wl_buffer_from_dmabuf(Ecore_Wl2_Display *disp, Dmabuf_Buffer *db);
103 103
104static void
105buffer_release(void *data, struct wl_buffer *buffer EINA_UNUSED)
106{
107 Dmabuf_Buffer *b = data;
108
109 b->busy = EINA_FALSE;
110 if (b->orphaned) _evas_dmabuf_buffer_destroy(b);
111}
112
113static const struct wl_buffer_listener buffer_listener =
114{
115 buffer_release
116};
117
104static Buffer_Handle * 118static Buffer_Handle *
105_intel_alloc(Buffer_Manager *self, const char *name, int w, int h, unsigned long *stride, int32_t *fd) 119_intel_alloc(Buffer_Manager *self, const char *name, int w, int h, unsigned long *stride, int32_t *fd)
106{ 120{
@@ -411,20 +425,6 @@ _buffer_manager_discard(Dmabuf_Buffer *buf)
411} 425}
412 426
413static void 427static void
414buffer_release(void *data, struct wl_buffer *buffer EINA_UNUSED)
415{
416 Dmabuf_Buffer *b = data;
417
418 b->busy = EINA_FALSE;
419 if (b->orphaned) _evas_dmabuf_buffer_destroy(b);
420}
421
422static const struct wl_buffer_listener buffer_listener =
423{
424 buffer_release
425};
426
427static void
428_fallback(Dmabuf_Surface *s, int w, int h) 428_fallback(Dmabuf_Surface *s, int w, int h)
429{ 429{
430 Dmabuf_Buffer *b; 430 Dmabuf_Buffer *b;