From 7c1c09f3edd47590123f74ee6ab6dce06166a852 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Fri, 1 May 2020 10:26:54 -0400 Subject: [PATCH] ecore-drm2: Add support for using page_flip_handler2 In our current Ecore_Drm2_Context structure, we are missing support for using page_flip_handler2. This patch adds that ability. This could prove useful when working with ecore_drm2 as it allows page_flip_handler callbacks to setup a handler for page_flip_handler2, which when the callback gets received, passes back the crtc_id which the pageflip occured on. @feature --- src/lib/ecore_drm2/Ecore_Drm2.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h index 26e55b670a..4d10e0d3a6 100644 --- a/src/lib/ecore_drm2/Ecore_Drm2.h +++ b/src/lib/ecore_drm2/Ecore_Drm2.h @@ -92,6 +92,8 @@ typedef struct _Ecore_Drm2_Context unsigned int tv_usec, void *user_data); void (*page_flip_handler)(int fd, unsigned int sequence, unsigned int tv_sec, unsigned int tv_usec, void *user_data); + void (*page_flip_handler2)(int fd, unsigned int sequence, unsigned int tv_sec, + unsigned int tv_usec, unsigned int crtc_id, void *user_data); } Ecore_Drm2_Context; EAPI extern int ECORE_DRM2_EVENT_OUTPUT_CHANGED;