ecore-drm2: Add 'release' flag for planes

As we cannot immediately remove a plane from an output, due to needing
an atomic commit to actually remove the plane from screen, we can use
a 'release' flag to indicate that a given plane needs removal from the
screen during our next atomic commit.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2017-05-03 10:56:07 -04:00 committed by Derek Foreman
parent bd4ccfa0f5
commit 0c0f525d9a
2 changed files with 2 additions and 1 deletions

View File

@ -126,6 +126,7 @@ ecore_drm2_plane_release(Ecore_Drm2_Plane *plane)
EINA_SAFETY_ON_NULL_RETURN(plane);
plane->state->in_use = EINA_FALSE;
plane->state->release = EINA_TRUE;
}
EAPI void

View File

@ -652,7 +652,7 @@ typedef struct _Ecore_Drm2_Plane_State
uint32_t num_formats;
uint32_t *formats;
Eina_Bool in_use;
Eina_Bool in_use, release;
} Ecore_Drm2_Plane_State;
struct _Ecore_Drm2_Atomic_State