diff options
author | Chris Michael <cp.michael@samsung.com> | 2017-03-27 13:30:56 -0400 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2017-04-18 07:55:10 -0400 |
commit | 9e07d37320718bbabd4feb4ff151fcb3cfd9f333 (patch) | |
tree | 04f3e52c6e8691ffaa5d6706c81ddc23e4f134cd /src/lib/ecore_drm2/ecore_drm2_plane.c | |
parent | 44d5c855e08d3e5034277b0047a444d1b2e55a9a (diff) |
ecore-drm2: Add API function to set plane destination
When we do an atomic commit, we need to know where to place a given
plane (in the case of overlays) in relation to the CRTC, so provide an
API function that can be used for that purpose.
@feature
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to '')
-rw-r--r-- | src/lib/ecore_drm2/ecore_drm2_plane.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_plane.c b/src/lib/ecore_drm2/ecore_drm2_plane.c index ef7d813241..d22bda76d2 100644 --- a/src/lib/ecore_drm2/ecore_drm2_plane.c +++ b/src/lib/ecore_drm2/ecore_drm2_plane.c | |||
@@ -111,3 +111,14 @@ out: | |||
111 | return NULL; | 111 | return NULL; |
112 | #endif | 112 | #endif |
113 | } | 113 | } |
114 | |||
115 | EAPI void | ||
116 | ecore_drm2_plane_destination_set(Ecore_Drm2_Plane *plane, int x, int y, int w, int h) | ||
117 | { | ||
118 | EINA_SAFETY_ON_NULL_RETURN(plane); | ||
119 | |||
120 | plane->state->cx.value = x; | ||
121 | plane->state->cy.value = y; | ||
122 | plane->state->cw.value = w; | ||
123 | plane->state->ch.value = h; | ||
124 | } | ||