summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2_plane.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-04-27 15:45:51 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-05-05 12:53:22 -0500
commitba2275b7ec1ac6943e25a804a48333a70abd78c9 (patch)
tree0d1a61b593a37f97af3777742d2ede0597338569 /src/lib/ecore_drm2/ecore_drm2_plane.c
parent014e84d8fa079088509c3fb3679bb4ce0f39764b (diff)
ecore_drm2: Add ecore_drm2_plane_release to release planes
Opposite of plane assign.
Diffstat (limited to 'src/lib/ecore_drm2/ecore_drm2_plane.c')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_plane.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_plane.c b/src/lib/ecore_drm2/ecore_drm2_plane.c
index 943104fd00..155c932bf5 100644
--- a/src/lib/ecore_drm2/ecore_drm2_plane.c
+++ b/src/lib/ecore_drm2/ecore_drm2_plane.c
@@ -113,6 +113,16 @@ out:
113} 113}
114 114
115EAPI void 115EAPI void
116ecore_drm2_plane_release(Ecore_Drm2_Plane *plane)
117{
118 EINA_SAFETY_ON_NULL_RETURN(plane);
119
120 plane->state->in_use = EINA_FALSE;
121 plane->output->planes = eina_list_remove(plane->output->planes, plane);
122 free(plane);
123}
124
125EAPI void
116ecore_drm2_plane_destination_set(Ecore_Drm2_Plane *plane, int x, int y, int w, int h) 126ecore_drm2_plane_destination_set(Ecore_Drm2_Plane *plane, int x, int y, int w, int h)
117{ 127{
118 EINA_SAFETY_ON_NULL_RETURN(plane); 128 EINA_SAFETY_ON_NULL_RETURN(plane);