devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=9c814cb652e72f2a6a22b88259119d2f1916d479
commit 9c814cb652e72f2a6a22b88259119d2f1916d479 Author: Chris Michael <[email protected]> Date: Wed Nov 21 11:06:51 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_map.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/lib/elementary/elm_map.c b/src/lib/elementary/elm_map.c index 26f9dee50d..6685a1979f 100644 --- a/src/lib/elementary/elm_map.c +++ b/src/lib/elementary/elm_map.c @@ -440,8 +440,7 @@ _obj_place(Evas_Object *obj, { EINA_SAFETY_ON_NULL_RETURN(obj); - evas_object_move(obj, x, y); - evas_object_resize(obj, w, h); + evas_object_geometry_set(obj, x, y, w, h); evas_object_show(obj); } @@ -1009,9 +1008,8 @@ _track_place(Elm_Map_Data *sd) (ymin > py + oh && ymax > py + oh)) { //display the route - evas_object_move(route, xmin - px, ymin - py); - evas_object_resize(route, xmax - xmin, ymax - ymin); - + evas_object_geometry_set(route, xmin - px, ymin - py, + xmax - xmin, ymax - ymin); evas_object_raise(route); _obj_rotate(sd, route); evas_object_show(route); @@ -1882,8 +1880,7 @@ _overlay_class_icon_update(Overlay_Class *ovl, evas_object_del(ovl->icon); ovl->icon = icon; // For using proxy, it should have size and be shown but moved away to hide. - evas_object_resize(icon, 32, 32); - evas_object_move(icon, -9999, -9999); + evas_object_geometry_set(icon, -9999, -9999, 32, 32); evas_object_show(icon); // Update class members' class icons --
