forked from enlightenment/efl
gl_drm ee: move release fb callback
No functional change, just code motion.
This commit is contained in:
parent
488e1c20e9
commit
bd0774206f
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue