ecore_drm2: Track whether an Ecore_Drm2_Plane has ever been on scanout
This commit is contained in:
parent
a8c7b89cb7
commit
bc8b11bd78
|
@ -284,7 +284,11 @@ ecore_drm2_fb_flip_complete(Ecore_Drm2_Output *output)
|
|||
|
||||
EINA_LIST_FOREACH_SAFE(output->planes, l, ll, plane)
|
||||
{
|
||||
if (!plane->dead) continue;
|
||||
if (!plane->dead)
|
||||
{
|
||||
plane->scanout = EINA_TRUE;
|
||||
continue;
|
||||
}
|
||||
output->planes = eina_list_remove_list(output->planes, l);
|
||||
free(plane);
|
||||
}
|
||||
|
|
|
@ -176,6 +176,7 @@ struct _Ecore_Drm2_Plane
|
|||
Ecore_Drm2_Output *output;
|
||||
Ecore_Drm2_Fb *fb;
|
||||
Eina_Bool dead;
|
||||
Eina_Bool scanout;
|
||||
};
|
||||
|
||||
struct _Ecore_Drm2_Output_Mode
|
||||
|
|
Loading…
Reference in New Issue