forked from enlightenment/efl
ecore_drm2: remove fb parameter from _fb_flip()
Time to start smashing the atomic and non-atomic paths together.
This commit is contained in:
parent
8143abff2c
commit
9da0f52642
|
@ -369,12 +369,15 @@ _fb_atomic_flip(Ecore_Drm2_Output *output)
|
|||
}
|
||||
|
||||
static int
|
||||
_fb_flip(Ecore_Drm2_Output *output, Ecore_Drm2_Fb *fb)
|
||||
_fb_flip(Ecore_Drm2_Output *output)
|
||||
{
|
||||
Ecore_Drm2_Fb *fb;
|
||||
Eina_Bool repeat;
|
||||
int count = 0;
|
||||
int ret = 0;
|
||||
|
||||
fb = output->prep.fb;
|
||||
|
||||
if (output->pending.fb)
|
||||
{
|
||||
if (output->next.fb) _release_buffer(output, output->next.fb);
|
||||
|
@ -490,10 +493,12 @@ ecore_drm2_fb_flip(Ecore_Drm2_Fb *fb, Ecore_Drm2_Output *output)
|
|||
|
||||
if (!output->enabled) return -1;
|
||||
|
||||
output->prep.fb = fb;
|
||||
|
||||
if (_ecore_drm2_use_atomic)
|
||||
ret = _fb_atomic_flip(output);
|
||||
else
|
||||
ret = _fb_flip(output, fb);
|
||||
ret = _fb_flip(output);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue