elementary: Reduce EO calls by using geometry_set

This patch reduces EO calls by using evas_object_geometry_set rather
than calling move & resize.
This commit is contained in:
Chris Michael 2018-11-21 10:43:13 -05:00
parent 328a6ad307
commit b32c39cd58
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}
}