aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_drm2/Ecore_Drm2.h
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-01-18 11:29:14 -0500
committerChris Michael <cp.michael@samsung.com>2017-01-18 11:29:14 -0500
commitc126ce2e705f45f5992442c0c8bf0dfe5b4f6919 (patch)
tree6b35958a791b275b1293ac330ede00f8cbee7835 /src/lib/ecore_drm2/Ecore_Drm2.h
parentecore-drm2: Add API function to return supported rotations of an output (diff)
downloadefl-c126ce2e705f45f5992442c0c8bf0dfe5b4f6919.tar.gz
ecore-drm2: Add API function to set output rotation
This patch adds a new API function that can be called from Enlightenment wl_drm module to enable output rotation. NB: Only works if Atomic support is enabled as it rotates the hardware plane directly...and we don't support planes without Atomic enabled. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm2/Ecore_Drm2.h')
-rw-r--r--src/lib/ecore_drm2/Ecore_Drm2.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h
index a7834c42db..87d7b404b1 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -758,6 +758,22 @@ EAPI void ecore_drm2_output_gamma_set(Ecore_Drm2_Output *output, uint16_t size,
EAPI int ecore_drm2_output_supported_rotations_get(Ecore_Drm2_Output *output);
/**
+ * Set a rotation on a given output
+ *
+ * @param output
+ * @param rotation
+ *
+ * @return EINA_TRUE on success, EINA_FALSE otherwise
+ *
+ * @note This function will only work if Atomic support
+ * is enabled as it requires hardware plane support.
+ *
+ * @ingroup Ecore_Drm2_Output_Group
+ * @since 1.19
+ */
+EAPI Eina_Bool ecore_drm2_output_rotation_set(Ecore_Drm2_Output *output, int rotation);
+
+/**
* @defgroup Ecore_Drm2_Fb_Group Drm framebuffer functions
*
* Functions that deal with setup of framebuffers