cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1ec244a09ef2e3fd89169c2a376387eafed1a84d

commit 1ec244a09ef2e3fd89169c2a376387eafed1a84d
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Fri Jan 29 21:42:36 2016 +0100

    evas: no need to call legacy function internally when we can just 
dereference some pointers.
---
 src/lib/evas/canvas/evas_object_main.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/lib/evas/canvas/evas_object_main.c 
b/src/lib/evas/canvas/evas_object_main.c
index 3c986a7..21a180c 100644
--- a/src/lib/evas/canvas/evas_object_main.c
+++ b/src/lib/evas/canvas/evas_object_main.c
@@ -113,10 +113,10 @@ _check_event_catcher_add(void *data,
           {
              if (obj->animator_ref++ > 0) break;
 
-             eo_do(evas_object_evas_get(obj->object),
+             eo_do(obj->layer->evas->evas,
                    
eo_event_callback_add(EFL_CORE_ANIMATOR_EVENT_ANIMATOR_TICK, 
_animator_repeater, obj));
              INF("Registering an animator tick on canvas %p for object %p.",
-                 evas_object_evas_get(obj->object), obj->object);
+                 obj->layer->evas->evas, obj->object);
 
              // No need to walk more than once per array as you can not del
              // a partial array
@@ -143,10 +143,10 @@ _check_event_catcher_del(void *data,
           {
              if ((--obj->animator_ref) > 0) break;
 
-             eo_do(evas_object_evas_get(obj->object),
+             eo_do(obj->layer->evas->evas,
                    
eo_event_callback_del(EFL_CORE_ANIMATOR_EVENT_ANIMATOR_TICK, 
_animator_repeater, obj));
              INF("Unregistering an animator tick on canvas %p for object %p.",
-                 evas_object_evas_get(obj->object), obj->object);
+                 obj->layer->evas->evas, obj->object);
 
              break;
           }

-- 


Reply via email to