ecore evas drm - make vsync animators a possible ifdef

this makes it easyeir to swizzle on and off
This commit is contained in:
Carsten Haitzler 2019-04-30 11:48:15 +01:00
parent 4f5b3b95fb
commit fd5d87a26c
1 changed files with 7 additions and 0 deletions

View File

@ -46,6 +46,8 @@
# endif
#endif /* ! _WIN32 */
#define VSYNC_ANIMATOR 1
typedef struct _Ecore_Evas_Engine_Drm_Data
{
int cw, ch;
@ -911,8 +913,13 @@ static Ecore_Evas_Engine_Func _ecore_evas_drm_engine_func =
NULL, // aux_hints_set
#ifndef VSYNC_ANIMATOR
NULL,
NULL,
#else
_drm_animator_register, // animator_register
_drm_animator_unregister, // animator_unregister
#endif
_drm_evas_changed, // evas_changed
NULL, //fn_focus_device_set