aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_drm2/Ecore_Drm2.h
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-07-12 15:27:52 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-07-13 18:07:42 -0500
commit20def4da21e9fcea3d6ab910493b529ab371e3f4 (patch)
treeac68f362180d8e1595f413ed0f0fc7f89bb70b1a /src/lib/ecore_drm2/Ecore_Drm2.h
parentecore_evas: Refactor event catchers to call custom_tick_begin/end (diff)
downloadefl-20def4da21e9fcea3d6ab910493b529ab371e3f4.tar.gz
ecore_drm2: Add a query for the next vblank time
I guess this is a feature, and we're deep in freeze, but: a) this is critical for fixing https://phab.enlightenment.org/T5462 properly without any side effects. b) ecore_drm2 is all beta api c) this should only affect wayland users ref https://phab.enlightenment.org/T5462
Diffstat (limited to 'src/lib/ecore_drm2/Ecore_Drm2.h')
-rw-r--r--src/lib/ecore_drm2/Ecore_Drm2.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h
index 2d0779a4c9..4be533bc66 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -1075,6 +1075,20 @@ EAPI Eina_Bool ecore_drm2_plane_fb_set(Ecore_Drm2_Plane *plane, Ecore_Drm2_Fb *f
* @since 1.20
*/
EAPI void ecore_drm2_fb_status_handler_set(Ecore_Drm2_Fb *fb, Ecore_Drm2_Fb_Status_Handler handler, void *data);
+
+/**
+ * Get the time of the last vblank
+ *
+ * Query the display hardware for the time of the last vblank.
+ *
+ * @param output
+ * @param sec
+ * @param usec
+ *
+ * @since 1.20
+ */
+EAPI Eina_Bool ecore_drm2_output_blanktime_get(Ecore_Drm2_Output *output, long *sec, long *usec);
+
# endif
#endif