forked from enlightenment/efl
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:
parent
bd4ccfa0f5
commit
0c0f525d9a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue