aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_drm2/Ecore_Drm2.h
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-01-18 10:38:01 -0500
committerChris Michael <cp.michael@samsung.com>2017-01-18 10:38:01 -0500
commitca194584d5e9072fa0640d810afa68779beb030b (patch)
treedb188884b1a00d1802e8f17ac9f3d787e4dd0f10 /src/lib/ecore_drm2/Ecore_Drm2.h
parentecore-drm2: Expose Ecore_Drm2_Rotation enum (diff)
downloadefl-ca194584d5e9072fa0640d810afa68779beb030b.tar.gz
ecore-drm2: Add API function to return supported rotations of an output
Small patch to add an API function which can be used to return the supported rotations of a given output. This is used inside the Enlightenment wl_drm module to determine if rotations is supported on an output. @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.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h
index 2a972771ba..a7834c42db 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -743,6 +743,21 @@ EAPI Eina_Bool ecore_drm2_output_possible_crtc_get(Ecore_Drm2_Output *output, un
EAPI void ecore_drm2_output_gamma_set(Ecore_Drm2_Output *output, uint16_t size, uint16_t *red, uint16_t *green, uint16_t *blue);
/**
+ * Get the supported rotations of a given output
+ *
+ * @param output
+ *
+ * @return An integer representing possible rotations, or -1 on failure
+ *
+ * @note This function will only return valid values if Atomic support
+ * is enabled as it requires hardware plane support.
+ *
+ * @ingroup Ecore_Drm2_Output_Group
+ * @since 1.19
+ */
+EAPI int ecore_drm2_output_supported_rotations_get(Ecore_Drm2_Output *output);
+
+/**
* @defgroup Ecore_Drm2_Fb_Group Drm framebuffer functions
*
* Functions that deal with setup of framebuffers