gl_drm ee: move release fb callback
authorDerek Foreman <derekf@osg.samsung.com>
Thu, 15 Jun 2017 17:16:01 +0000 (12:16 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Fri, 23 Jun 2017 13:15:40 +0000 (08:15 -0500)
No functional change, just code motion.

src/modules/evas/engines/gl_drm/evas_outbuf.c

index c69a656..63cdb07 100644 (file)
@@ -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)
 {