summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ecore_drm2/Ecore_Drm2.h10
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_plane.c10
2 files changed, 20 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h
index 6f1296d204..1448500d44 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -1009,6 +1009,16 @@ EAPI Ecore_Drm2_Fb *ecore_drm2_fb_dmabuf_import(int fd, int width, int height, i
1009EAPI Ecore_Drm2_Plane *ecore_drm2_plane_assign(Ecore_Drm2_Output *output, Ecore_Drm2_Fb *fb); 1009EAPI Ecore_Drm2_Plane *ecore_drm2_plane_assign(Ecore_Drm2_Output *output, Ecore_Drm2_Fb *fb);
1010 1010
1011/** 1011/**
1012 * Remove a hardware plane from display
1013 *
1014 * @param plane
1015 *
1016 * @ingroup Ecore_Drm2_Plane_Group
1017 * @since 1.20
1018 */
1019EAPI void ecore_drm2_plane_release(Ecore_Drm2_Plane *plane);
1020
1021/**
1012 * Set plane destination values 1022 * Set plane destination values
1013 * 1023 *
1014 * @param plane 1024 * @param plane
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);