From bd0774206f8b9780f6825dbf52c2381fe8ef1e6f Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Thu, 15 Jun 2017 12:16:01 -0500 Subject: [PATCH] gl_drm ee: move release fb callback No functional change, just code motion. --- src/modules/evas/engines/gl_drm/evas_outbuf.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/modules/evas/engines/gl_drm/evas_outbuf.c b/src/modules/evas/engines/gl_drm/evas_outbuf.c index c69a656..63cdb07 100644 --- a/src/modules/evas/engines/gl_drm/evas_outbuf.c +++ b/src/modules/evas/engines/gl_drm/evas_outbuf.c @@ -44,6 +44,17 @@ _evas_outbuf_fb_cb_destroy(struct gbm_bo *bo EINA_UNUSED, void *data) if (fb) ecore_drm2_fb_discard(fb); } +void +_evas_outbuf_release_fb(void *ob_v, Ecore_Drm2_Fb *fb) + { + struct gbm_bo *bo; + Outbuf *ob; + + ob = ob_v; + bo = ecore_drm2_fb_bo_get(fb); + gbm_surface_release_buffer(ob->surface, bo); +} + static Ecore_Drm2_Fb * _evas_outbuf_fb_get(Outbuf *ob, struct gbm_bo *bo) { @@ -75,17 +86,6 @@ _evas_outbuf_fb_get(Outbuf *ob, struct gbm_bo *bo) return fb; } -void -_evas_outbuf_release_fb(void *ob_v, Ecore_Drm2_Fb *fb) -{ - struct gbm_bo *bo; - Outbuf *ob; - - ob = ob_v; - bo = ecore_drm2_fb_bo_get(fb); - gbm_surface_release_buffer(ob->surface, bo); -} - static void _evas_outbuf_buffer_swap(Outbuf *ob) { -- 2.7.4