gl_drm ee: move release fb callback

No functional change, just code motion.
This commit is contained in:
Derek Foreman 2017-06-15 12:16:01 -05:00
parent 488e1c20e9
commit bd0774206f
1 changed files with 11 additions and 11 deletions

View 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)
{