devilhorns pushed a commit to branch master.

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

commit b32c39cd58c9851e069edd5977f420aacbadac54
Author: Chris Michael <[email protected]>
Date:   Wed Nov 21 10:43:13 2018 -0500

    elementary: Reduce EO calls by using geometry_set
    
    This patch reduces EO calls by using evas_object_geometry_set rather
    than calling move & resize.
---
 src/lib/elementary/elm_box.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/lib/elementary/elm_box.c b/src/lib/elementary/elm_box.c
index 2c6d326a91..71af0b5612 100644
--- a/src/lib/elementary/elm_box.c
+++ b/src/lib/elementary/elm_box.c
@@ -297,8 +297,7 @@ _transition_layout_animation_exec(Evas_Object *obj,
         cur_y = y + tad->start.y + ((tad->end.y - tad->start.y) * progress);
         cur_w = tad->start.w + ((tad->end.w - tad->start.w) * progress);
         cur_h = tad->start.h + ((tad->end.h - tad->start.h) * progress);
-        evas_object_move(tad->obj, cur_x, cur_y);
-        evas_object_resize(tad->obj, cur_w, cur_h);
+        evas_object_geometry_set(tad->obj, cur_x, cur_y, cur_w, cur_h);
      }
 }
 

-- 


Reply via email to