summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2
diff options
context:
space:
mode:
authorChristopher Michael <devilhorns@comcast.net>2020-05-01 10:26:54 -0400
committerChristopher Michael <devilhorns@comcast.net>2020-05-01 10:29:45 -0400
commit7c1c09f3edd47590123f74ee6ab6dce06166a852 (patch)
tree8e9ea814af4116a6562ab2129d0dd6202a538fcd /src/lib/ecore_drm2
parentb2a2ba39af00ed4443367ef7f2e2ffa31c0f9977 (diff)
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
Diffstat (limited to 'src/lib/ecore_drm2')
-rw-r--r--src/lib/ecore_drm2/Ecore_Drm2.h2
1 files changed, 2 insertions, 0 deletions
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
92 unsigned int tv_usec, void *user_data); 92 unsigned int tv_usec, void *user_data);
93 void (*page_flip_handler)(int fd, unsigned int sequence, unsigned int tv_sec, 93 void (*page_flip_handler)(int fd, unsigned int sequence, unsigned int tv_sec,
94 unsigned int tv_usec, void *user_data); 94 unsigned int tv_usec, void *user_data);
95 void (*page_flip_handler2)(int fd, unsigned int sequence, unsigned int tv_sec,
96 unsigned int tv_usec, unsigned int crtc_id, void *user_data);
95} Ecore_Drm2_Context; 97} Ecore_Drm2_Context;
96 98
97EAPI extern int ECORE_DRM2_EVENT_OUTPUT_CHANGED; 99EAPI extern int ECORE_DRM2_EVENT_OUTPUT_CHANGED;