summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-04-30 11:48:15 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-04-30 11:51:06 +0100
commitfd5d87a26cc57ec829310eed7d57a1e5aa4b3b40 (patch)
tree635aec16dc1e3e8dab1e788618d0ddc43dc12843 /src/modules
parent4f5b3b95fb1a3c0e4d7f05f9eab6ca46e7006779 (diff)
ecore evas drm - make vsync animators a possible ifdef
this makes it easyeir to swizzle on and off
Diffstat (limited to '')
-rw-r--r--src/modules/ecore_evas/engines/drm/ecore_evas_drm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
index c60293cb40..2a79e6b7f1 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -46,6 +46,8 @@
46# endif 46# endif
47#endif /* ! _WIN32 */ 47#endif /* ! _WIN32 */
48 48
49#define VSYNC_ANIMATOR 1
50
49typedef struct _Ecore_Evas_Engine_Drm_Data 51typedef struct _Ecore_Evas_Engine_Drm_Data
50{ 52{
51 int cw, ch; 53 int cw, ch;
@@ -911,8 +913,13 @@ static Ecore_Evas_Engine_Func _ecore_evas_drm_engine_func =
911 913
912 NULL, // aux_hints_set 914 NULL, // aux_hints_set
913 915
916#ifndef VSYNC_ANIMATOR
917 NULL,
918 NULL,
919#else
914 _drm_animator_register, // animator_register 920 _drm_animator_register, // animator_register
915 _drm_animator_unregister, // animator_unregister 921 _drm_animator_unregister, // animator_unregister
922#endif
916 923
917 _drm_evas_changed, // evas_changed 924 _drm_evas_changed, // evas_changed
918 NULL, //fn_focus_device_set 925 NULL, //fn_focus_device_set