forked from enlightenment/efl
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
This commit is contained in:
parent
b2a2ba39af
commit
7c1c09f3ed
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue