elementary: Reduce EO calls by using geometry_set
authorChris Michael <cp.michael@samsung.com>
Wed, 21 Nov 2018 15:43:54 +0000 (10:43 -0500)
committerHermet Park <hermetpark@gmail.com>
Wed, 5 Dec 2018 05:30:08 +0000 (14:30 +0900)
This patch reduces EO calls by using evas_object_geometry_set rather
than calling move & resize.

src/lib/elementary/efl_ui_tags.c

index 9a7a28f..81dc301 100644 (file)
@@ -877,11 +877,11 @@ _box_layout_cb(Evas_Object *o,
              linew = ww;
           }
 
-        evas_object_move(obj,
-                         ((!rtl) ? (xx) : (r.x + (r.w - (xx - r.x) - ww)))
-                         + (Evas_Coord)(((double)(ww - ow)) * ax),
-                         yy + (Evas_Coord)(((double)(hh - oh)) * ay));
-        evas_object_resize(obj, ow, oh);
+        evas_object_geometry_set(obj,
+                                 ((!rtl) ? (xx) : (r.x + (r.w - (xx - r.x) - ww)))
+                                 + (Evas_Coord)(((double)(ww - ow)) * ax),
+                                 yy + (Evas_Coord)(((double)(hh - oh)) * ay),
+                                 ow, oh);
         xx += ww;
         xx += priv->pad.h;