summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2017-05-05 17:12:17 -0700
committerCedric Bail <cedric@osg.samsung.com>2017-05-05 17:55:06 -0700
commit696ed3e2e8f97de482e98db34997ad1848da985d (patch)
tree1b40c3b382ef7b9a60ceca947b18580f13516b13 /src/lib/ecore_evas
parent7b4b7b66966c156634ab5920fc1ddf48282634c8 (diff)
ecore_evas: add infrastructure to properly track sub ecore_evas.
Diffstat (limited to 'src/lib/ecore_evas')
-rw-r--r--src/lib/ecore_evas/ecore_evas.c11
-rw-r--r--src/lib/ecore_evas/ecore_evas_private.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c
index 5eb48c43e6..ac525fd329 100644
--- a/src/lib/ecore_evas/ecore_evas.c
+++ b/src/lib/ecore_evas/ecore_evas.c
@@ -3098,6 +3098,17 @@ _ecore_evas_register(Ecore_Evas *ee)
3098 evas_event_callback_add(ee->evas, EVAS_CALLBACK_RENDER_POST, _evas_evas_buffer_rendered, ee); 3098 evas_event_callback_add(ee->evas, EVAS_CALLBACK_RENDER_POST, _evas_evas_buffer_rendered, ee);
3099} 3099}
3100 3100
3101void
3102_ecore_evas_subregister(Ecore_Evas *ee_target, Ecore_Evas *ee)
3103{
3104 _ecore_evas_register_animators(ee);
3105
3106 ee_target->sub_ecore_evas = eina_list_append(ee_target->sub_ecore_evas, ee);
3107
3108 if (!ee->engine.func->fn_render)
3109 evas_event_callback_add(ee->evas, EVAS_CALLBACK_RENDER_POST, _evas_evas_buffer_rendered, ee);
3110}
3111
3101EAPI void 3112EAPI void
3102_ecore_evas_ref(Ecore_Evas *ee) 3113_ecore_evas_ref(Ecore_Evas *ee)
3103{ 3114{
diff --git a/src/lib/ecore_evas/ecore_evas_private.h b/src/lib/ecore_evas/ecore_evas_private.h
index d6fd15d904..3bfacdc469 100644
--- a/src/lib/ecore_evas/ecore_evas_private.h
+++ b/src/lib/ecore_evas/ecore_evas_private.h
@@ -390,6 +390,7 @@ EAPI void _ecore_evas_fps_debug_init(void);
390EAPI void _ecore_evas_fps_debug_shutdown(void); 390EAPI void _ecore_evas_fps_debug_shutdown(void);
391EAPI void _ecore_evas_fps_debug_rendertime_add(double t); 391EAPI void _ecore_evas_fps_debug_rendertime_add(double t);
392EAPI void _ecore_evas_register(Ecore_Evas *ee); 392EAPI void _ecore_evas_register(Ecore_Evas *ee);
393void _ecore_evas_subregister(Ecore_Evas *ee_target, Ecore_Evas *ee);
393EAPI void _ecore_evas_register_animators(Ecore_Evas *ee); 394EAPI void _ecore_evas_register_animators(Ecore_Evas *ee);
394EAPI void _ecore_evas_free(Ecore_Evas *ee); 395EAPI void _ecore_evas_free(Ecore_Evas *ee);
395EAPI void _ecore_evas_idle_timeout_update(Ecore_Evas *ee); 396EAPI void _ecore_evas_idle_timeout_update(Ecore_Evas *ee);