evas/canvas: simple optimization.

We don't need to reorder the clist here as far as I reviewed.
Because, the clist nodes will be calculated all in one.

If I'm wrong please ping me.
This commit is contained in:
Hermet Park 2016-02-02 17:59:27 +09:00
parent 524fd2f6fc
commit ca124ce5ce
1 changed files with 2 additions and 2 deletions

View File

@ -893,6 +893,8 @@ _evas_object_smart_need_recalculate_set(Eo *eo_obj, Evas_Smart_Data *o, Eina_Boo
// XXX: do i need this?
if (!obj || !obj->layer || obj->delete_me) return;
if (o->need_recalculate == value) return;
evas_object_async_block(obj);
/* remove this entry from calc_list or processed list */
if (eina_clist_element_is_linked(&o->calc_entry))
@ -904,8 +906,6 @@ _evas_object_smart_need_recalculate_set(Eo *eo_obj, Evas_Smart_Data *o, Eina_Boo
else
eina_clist_add_tail(&obj->layer->evas->calc_done, &o->calc_entry);
if (o->need_recalculate == value) return;
if (o->recalculate_cycle > 16382)
{
ERR("Object %p is not stable during recalc loop", eo_obj);