summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-07-12 16:29:17 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-07-13 18:07:42 -0500
commitaa8d9c1829f65c4fe0bb79a73e49f56c0aa2b92f (patch)
tree6c0bbe8fa5cb3bc7d382b190ed2227ddd98d6ebe /src
parent20def4da21e9fcea3d6ab910493b529ab371e3f4 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_evas/ecore_evas_private.h2
-rw-r--r--src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c1
-rw-r--r--src/modules/ecore_evas/engines/drm/ecore_evas_drm.c1
-rw-r--r--src/modules/ecore_evas/engines/extn/ecore_evas_extn.c1
-rw-r--r--src/modules/ecore_evas/engines/fb/ecore_evas_fb.c1
-rw-r--r--src/modules/ecore_evas/engines/psl1ght/ecore_evas_psl1ght.c1
-rw-r--r--src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c1
-rw-r--r--src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c1
-rw-r--r--src/modules/ecore_evas/engines/win32/ecore_evas_win32.c1
-rw-r--r--src/modules/ecore_evas/engines/x/ecore_evas_x.c1
10 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/ecore_evas/ecore_evas_private.h b/src/lib/ecore_evas/ecore_evas_private.h
index 2beabab84c..b808cb2fed 100644
--- a/src/lib/ecore_evas/ecore_evas_private.h
+++ b/src/lib/ecore_evas/ecore_evas_private.h
@@ -169,6 +169,8 @@ struct _Ecore_Evas_Engine_Func
169 void (*fn_pointer_device_xy_get)(const Ecore_Evas *ee, const Efl_Input_Device *pointer, Evas_Coord *x, Evas_Coord *y); 169 void (*fn_pointer_device_xy_get)(const Ecore_Evas *ee, const Efl_Input_Device *pointer, Evas_Coord *x, Evas_Coord *y);
170 170
171 Eina_Bool (*fn_prepare)(Ecore_Evas *ee); 171 Eina_Bool (*fn_prepare)(Ecore_Evas *ee);
172
173 double (*fn_last_tick_get)(Ecore_Evas *ee);
172}; 174};
173 175
174struct _Ecore_Evas_Interface 176struct _Ecore_Evas_Interface
diff --git a/src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c b/src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c
index 41f06fce3f..75ba1da62c 100644
--- a/src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c
+++ b/src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c
@@ -509,6 +509,7 @@ static Ecore_Evas_Engine_Func _ecore_cocoa_engine_func =
509 NULL, //fn_callback_device_mouse_out_set 509 NULL, //fn_callback_device_mouse_out_set
510 NULL, //fn_pointer_device_xy_get 510 NULL, //fn_pointer_device_xy_get
511 NULL, //fn_prepare 511 NULL, //fn_prepare
512 NULL, //fn_last_tick_get
512 }; 513 };
513 514
514static Ecore_Cocoa_Window * 515static Ecore_Cocoa_Window *
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 4f004cecf6..96d0c27656 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -760,6 +760,7 @@ static Ecore_Evas_Engine_Func _ecore_evas_drm_engine_func =
760 NULL, //fn_callback_device_mouse_out_set 760 NULL, //fn_callback_device_mouse_out_set
761 NULL, //fn_pointer_device_xy_get 761 NULL, //fn_pointer_device_xy_get
762 NULL, //fn_prepare 762 NULL, //fn_prepare
763 NULL, //fn_last_tick_get
763}; 764};
764 765
765static Ecore_Evas * 766static Ecore_Evas *
diff --git a/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c b/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c
index 299dd48e55..e75d6cec46 100644
--- a/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c
+++ b/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c
@@ -927,6 +927,7 @@ static const Ecore_Evas_Engine_Func _ecore_extn_plug_engine_func =
927 NULL, //fn_callback_device_mouse_out_set 927 NULL, //fn_callback_device_mouse_out_set
928 NULL, //fn_pointer_device_xy_get 928 NULL, //fn_pointer_device_xy_get
929 NULL, //fn_prepare 929 NULL, //fn_prepare
930 NULL, //fn_last_tick_get
930}; 931};
931 932
932static Eina_Bool 933static Eina_Bool
diff --git a/src/modules/ecore_evas/engines/fb/ecore_evas_fb.c b/src/modules/ecore_evas/engines/fb/ecore_evas_fb.c
index 4aea2240cd..7dd2ddc618 100644
--- a/src/modules/ecore_evas/engines/fb/ecore_evas_fb.c
+++ b/src/modules/ecore_evas/engines/fb/ecore_evas_fb.c
@@ -562,6 +562,7 @@ static Ecore_Evas_Engine_Func _ecore_fb_engine_func =
562 NULL, //fn_callback_device_mouse_out_set 562 NULL, //fn_callback_device_mouse_out_set
563 NULL, //fn_pointer_device_xy_get 563 NULL, //fn_pointer_device_xy_get
564 NULL, //fn_prepare 564 NULL, //fn_prepare
565 NULL, //fn_last_tick_get
565}; 566};
566 567
567EAPI Ecore_Evas * 568EAPI Ecore_Evas *
diff --git a/src/modules/ecore_evas/engines/psl1ght/ecore_evas_psl1ght.c b/src/modules/ecore_evas/engines/psl1ght/ecore_evas_psl1ght.c
index 239dbde254..0ad3b87cd3 100644
--- a/src/modules/ecore_evas/engines/psl1ght/ecore_evas_psl1ght.c
+++ b/src/modules/ecore_evas/engines/psl1ght/ecore_evas_psl1ght.c
@@ -369,6 +369,7 @@ static Ecore_Evas_Engine_Func _ecore_psl1ght_engine_func =
369 NULL, //fn_callback_device_mouse_out_set 369 NULL, //fn_callback_device_mouse_out_set
370 NULL, //fn_pointer_device_xy_get 370 NULL, //fn_pointer_device_xy_get
371 NULL, //fn_prepare 371 NULL, //fn_prepare
372 NULL, //fn_last_tick_get
372}; 373};
373 374
374EAPI Ecore_Evas * 375EAPI Ecore_Evas *
diff --git a/src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c b/src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c
index 3669ef7d0c..56b789dd3c 100644
--- a/src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c
+++ b/src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c
@@ -454,6 +454,7 @@ static Ecore_Evas_Engine_Func _ecore_sdl_engine_func =
454 NULL, //fn_callback_device_mouse_out_set 454 NULL, //fn_callback_device_mouse_out_set
455 NULL, //fn_pointer_device_xy_get 455 NULL, //fn_pointer_device_xy_get
456 NULL, //fn_prepare 456 NULL, //fn_prepare
457 NULL, //fn_last_tick_get
457}; 458};
458 459
459static Ecore_Evas* 460static Ecore_Evas*
diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
index 16a6c98876..3946f5e4ef 100644
--- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
+++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
@@ -2212,6 +2212,7 @@ static Ecore_Evas_Engine_Func _ecore_wl_engine_func =
2212 NULL, //fn_callback_device_mouse_out_set 2212 NULL, //fn_callback_device_mouse_out_set
2213 _ecore_evas_wl_common_pointer_device_xy_get, 2213 _ecore_evas_wl_common_pointer_device_xy_get,
2214 _ecore_evas_wl_common_prepare, 2214 _ecore_evas_wl_common_prepare,
2215 NULL, //fn_last_tick_get
2215}; 2216};
2216 2217
2217Ecore_Evas * 2218Ecore_Evas *
diff --git a/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c b/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
index 44717e1c24..3b87959b1a 100644
--- a/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
+++ b/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
@@ -1281,6 +1281,7 @@ static Ecore_Evas_Engine_Func _ecore_win32_engine_func =
1281 NULL, //fn_callback_device_mouse_out_set 1281 NULL, //fn_callback_device_mouse_out_set
1282 NULL, //fn_pointer_device_xy_get 1282 NULL, //fn_pointer_device_xy_get
1283 NULL, //fn_prepare 1283 NULL, //fn_prepare
1284 NULL, //fn_last_tick_get
1284}; 1285};
1285 1286
1286#endif /* BUILD_ECORE_EVAS_WIN32 */ 1287#endif /* BUILD_ECORE_EVAS_WIN32 */
diff --git a/src/modules/ecore_evas/engines/x/ecore_evas_x.c b/src/modules/ecore_evas/engines/x/ecore_evas_x.c
index 5a08aa853d..542b3f82e9 100644
--- a/src/modules/ecore_evas/engines/x/ecore_evas_x.c
+++ b/src/modules/ecore_evas/engines/x/ecore_evas_x.c
@@ -3758,6 +3758,7 @@ static Ecore_Evas_Engine_Func _ecore_x_engine_func =
3758 NULL, //fn_callback_device_mouse_out_set 3758 NULL, //fn_callback_device_mouse_out_set
3759 NULL, //fn_pointer_device_xy_get 3759 NULL, //fn_pointer_device_xy_get
3760 NULL, //fn_prepare 3760 NULL, //fn_prepare
3761 NULL, //fn_last_tick_get
3761}; 3762};
3762 3763
3763/* 3764/*