summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-05-03 10:56:07 -0400
committerDerek Foreman <derekf@osg.samsung.com>2017-05-05 12:53:24 -0500
commit0c0f525d9aa5dc09bd0c9a78526f7149b0ceff79 (patch)
tree77573865186b12f0472b6c540c04e321f1d54c4b /src/lib/ecore_drm2
parentbd4ccfa0f56b8ccd392e585b1744267d62a0a048 (diff)
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>
Diffstat (limited to 'src/lib/ecore_drm2')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_plane.c1
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_private.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_plane.c b/src/lib/ecore_drm2/ecore_drm2_plane.c
index 100b8b959d..2ecf96b19f 100644
--- a/src/lib/ecore_drm2/ecore_drm2_plane.c
+++ b/src/lib/ecore_drm2/ecore_drm2_plane.c
@@ -126,6 +126,7 @@ ecore_drm2_plane_release(Ecore_Drm2_Plane *plane)
126 EINA_SAFETY_ON_NULL_RETURN(plane); 126 EINA_SAFETY_ON_NULL_RETURN(plane);
127 127
128 plane->state->in_use = EINA_FALSE; 128 plane->state->in_use = EINA_FALSE;
129 plane->state->release = EINA_TRUE;
129} 130}
130 131
131EAPI void 132EAPI void
diff --git a/src/lib/ecore_drm2/ecore_drm2_private.h b/src/lib/ecore_drm2/ecore_drm2_private.h
index 3bef9fe5bd..f73f8bcb49 100644
--- a/src/lib/ecore_drm2/ecore_drm2_private.h
+++ b/src/lib/ecore_drm2/ecore_drm2_private.h
@@ -652,7 +652,7 @@ typedef struct _Ecore_Drm2_Plane_State
652 uint32_t num_formats; 652 uint32_t num_formats;
653 uint32_t *formats; 653 uint32_t *formats;
654 654
655 Eina_Bool in_use; 655 Eina_Bool in_use, release;
656} Ecore_Drm2_Plane_State; 656} Ecore_Drm2_Plane_State;
657 657
658struct _Ecore_Drm2_Atomic_State 658struct _Ecore_Drm2_Atomic_State