evas render - remove excess scope data get when we already have the ptr

_evas_render_is_relevant() needs the obj protected data, so it gets
scrop data, but the only place it is called already has this pointer,
so avoid an extra lookup.

@optimize
This commit is contained in:
Carsten Haitzler 2016-11-26 10:52:15 +09:00
parent 69cb85aaca
commit a4aac60a67
1 changed files with 2 additions and 3 deletions

View File

@ -274,9 +274,8 @@ _evas_render_had_map(Evas_Object_Protected_Data *obj)
}
static Eina_Bool
_evas_render_is_relevant(Evas_Object *eo_obj)
_evas_render_is_relevant(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj)
{
Evas_Object_Protected_Data *obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
return ((evas_object_is_visible(eo_obj, obj) && (!obj->cur->have_clipees)) ||
(evas_object_was_visible(eo_obj, obj) && (!obj->prev->have_clipees)));
}
@ -905,7 +904,7 @@ _evas_render_phase1_object_changed_normal(Phase1_Context *p1ctx,
#endif
)
{
if ((!obj->clip.clipees) && _evas_render_is_relevant(eo_obj))
if ((!obj->clip.clipees) && _evas_render_is_relevant(eo_obj, obj))
{
if (EINA_LIKELY(is_active))
{