forked from enlightenment/efl
ecore_evas: Add a function pointer for last_tick_get
Engines that provide their own tickers may need to be able to provide the time of the last tick even if they weren't sending ticks to EFL at the time. This is a feature added during freeze as it's necessary to resolve a bug. ref T5462
This commit is contained in:
parent
20def4da21
commit
aa8d9c1829
|
@ -169,6 +169,8 @@ struct _Ecore_Evas_Engine_Func
|
|||
void (*fn_pointer_device_xy_get)(const Ecore_Evas *ee, const Efl_Input_Device *pointer, Evas_Coord *x, Evas_Coord *y);
|
||||
|
||||
Eina_Bool (*fn_prepare)(Ecore_Evas *ee);
|
||||
|
||||
double (*fn_last_tick_get)(Ecore_Evas *ee);
|
||||
};
|
||||
|
||||
struct _Ecore_Evas_Interface
|
||||
|
|
|
@ -509,6 +509,7 @@ static Ecore_Evas_Engine_Func _ecore_cocoa_engine_func =
|
|||
NULL, //fn_callback_device_mouse_out_set
|
||||
NULL, //fn_pointer_device_xy_get
|
||||
NULL, //fn_prepare
|
||||
NULL, //fn_last_tick_get
|
||||
};
|
||||
|
||||
static Ecore_Cocoa_Window *
|
||||
|
|
|
@ -760,6 +760,7 @@ static Ecore_Evas_Engine_Func _ecore_evas_drm_engine_func =
|
|||
NULL, //fn_callback_device_mouse_out_set
|
||||
NULL, //fn_pointer_device_xy_get
|
||||
NULL, //fn_prepare
|
||||
NULL, //fn_last_tick_get
|
||||
};
|
||||
|
||||
static Ecore_Evas *
|
||||
|
|
|
@ -927,6 +927,7 @@ static const Ecore_Evas_Engine_Func _ecore_extn_plug_engine_func =
|
|||
NULL, //fn_callback_device_mouse_out_set
|
||||
NULL, //fn_pointer_device_xy_get
|
||||
NULL, //fn_prepare
|
||||
NULL, //fn_last_tick_get
|
||||
};
|
||||
|
||||
static Eina_Bool
|
||||
|
|
|
@ -562,6 +562,7 @@ static Ecore_Evas_Engine_Func _ecore_fb_engine_func =
|
|||
NULL, //fn_callback_device_mouse_out_set
|
||||
NULL, //fn_pointer_device_xy_get
|
||||
NULL, //fn_prepare
|
||||
NULL, //fn_last_tick_get
|
||||
};
|
||||
|
||||
EAPI Ecore_Evas *
|
||||
|
|
|
@ -369,6 +369,7 @@ static Ecore_Evas_Engine_Func _ecore_psl1ght_engine_func =
|
|||
NULL, //fn_callback_device_mouse_out_set
|
||||
NULL, //fn_pointer_device_xy_get
|
||||
NULL, //fn_prepare
|
||||
NULL, //fn_last_tick_get
|
||||
};
|
||||
|
||||
EAPI Ecore_Evas *
|
||||
|
|
|
@ -454,6 +454,7 @@ static Ecore_Evas_Engine_Func _ecore_sdl_engine_func =
|
|||
NULL, //fn_callback_device_mouse_out_set
|
||||
NULL, //fn_pointer_device_xy_get
|
||||
NULL, //fn_prepare
|
||||
NULL, //fn_last_tick_get
|
||||
};
|
||||
|
||||
static Ecore_Evas*
|
||||
|
|
|
@ -2212,6 +2212,7 @@ static Ecore_Evas_Engine_Func _ecore_wl_engine_func =
|
|||
NULL, //fn_callback_device_mouse_out_set
|
||||
_ecore_evas_wl_common_pointer_device_xy_get,
|
||||
_ecore_evas_wl_common_prepare,
|
||||
NULL, //fn_last_tick_get
|
||||
};
|
||||
|
||||
Ecore_Evas *
|
||||
|
|
|
@ -1281,6 +1281,7 @@ static Ecore_Evas_Engine_Func _ecore_win32_engine_func =
|
|||
NULL, //fn_callback_device_mouse_out_set
|
||||
NULL, //fn_pointer_device_xy_get
|
||||
NULL, //fn_prepare
|
||||
NULL, //fn_last_tick_get
|
||||
};
|
||||
|
||||
#endif /* BUILD_ECORE_EVAS_WIN32 */
|
||||
|
|
|
@ -3758,6 +3758,7 @@ static Ecore_Evas_Engine_Func _ecore_x_engine_func =
|
|||
NULL, //fn_callback_device_mouse_out_set
|
||||
NULL, //fn_pointer_device_xy_get
|
||||
NULL, //fn_prepare
|
||||
NULL, //fn_last_tick_get
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue