summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-02-20 17:25:29 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-02-21 10:52:39 +0900
commite8acf4762ba133642b0053cb7ac15f17bc1766f0 (patch)
tree53641e490d4314e61ba63b0393ea857cae89612a /src/lib
parent05cc5ab940caaf0612ac246c468fbb48144dbe02 (diff)
evas: Avoid call to EAPI inside internal code
This avoids calling efl_isa and locking the async mutex. In callgrind analysis, this reduces the count of calls to efl_isa from 1.96M to 1.02M. @optimization
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/evas/canvas/evas_object_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_object_main.c b/src/lib/evas/canvas/evas_object_main.c
index c6508766a2..77cc16b6b8 100644
--- a/src/lib/evas/canvas/evas_object_main.c
+++ b/src/lib/evas/canvas/evas_object_main.c
@@ -1142,12 +1142,12 @@ _efl_canvas_object_efl_gfx_position_set(Eo *eo_obj, Evas_Object_Protected_Data *
1142 Eina_Bool pass = EINA_FALSE, freeze = EINA_FALSE; 1142 Eina_Bool pass = EINA_FALSE, freeze = EINA_FALSE;
1143 Eina_Bool source_invisible = EINA_FALSE; 1143 Eina_Bool source_invisible = EINA_FALSE;
1144 Eina_List *was = NULL; 1144 Eina_List *was = NULL;
1145 Evas_Map *map;
1145 1146
1146 if (_evas_object_intercept_call_evas(obj, EVAS_OBJECT_INTERCEPT_CB_MOVE, 1, x, y)) 1147 if (_evas_object_intercept_call_evas(obj, EVAS_OBJECT_INTERCEPT_CB_MOVE, 1, x, y))
1147 return; 1148 return;
1148 1149
1149 Evas_Map *map; 1150 map = obj->map->cur.map;
1150 map = (Evas_Map *) evas_object_map_get(eo_obj);
1151 if (map && map->move_sync.enabled) 1151 if (map && map->move_sync.enabled)
1152 { 1152 {
1153 Evas_Coord diff_x = x - obj->cur->geometry.x; 1153 Evas_Coord diff_x = x - obj->cur->geometry.x;