devilhorns pushed a commit to branch master.

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

commit 554573eaa9f17d987788a57c03813e108c649b1d
Author: Chris Michael <[email protected]>
Date:   Wed Nov 21 10:58:14 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/elc_ctxpopup.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/lib/elementary/elc_ctxpopup.c 
b/src/lib/elementary/elc_ctxpopup.c
index 2cb1693b29..a389c0df43 100644
--- a/src/lib/elementary/elc_ctxpopup.c
+++ b/src/lib/elementary/elc_ctxpopup.c
@@ -575,8 +575,7 @@ _elm_ctxpopup_elm_layout_sizing_eval(Eo *obj, 
Elm_Ctxpopup_Data *sd)
    evas_object_geometry_get(sd->parent, NULL, NULL, &parent_size.x, 
&parent_size.y);
    evas_object_resize(sd->bg, parent_size.x, parent_size.y);
 
-   evas_object_move(wd->resize_obj, rect.x, rect.y);
-   evas_object_resize(wd->resize_obj, rect.w, rect.h);
+   evas_object_geometry_set(wd->resize_obj, rect.x, rect.y, rect.w, rect.h);
 
    _show_signals_emit(obj, sd->dir);
 
@@ -1171,8 +1170,7 @@ _elm_ctxpopup_hover_parent_set(Eo *obj, Elm_Ctxpopup_Data 
*sd, Evas_Object *pare
    evas_object_geometry_get(parent, &x, &y, &w, &h);
    if (parent && efl_isa(parent, EFL_UI_WIN_CLASS))
      x = y = 0;
-   evas_object_move(sd->bg, x, y);
-   evas_object_resize(sd->bg, w, h);
+   evas_object_geometry_set(sd->bg, x, y, w, h);
 
    if (sd->visible) elm_layout_sizing_eval(obj);
 }

-- 


Reply via email to