diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2016-11-26 10:52:15 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2016-11-26 18:33:56 +0900 |
commit | a4aac60a67a3be180a6461fe2d1cb794d452d80f (patch) | |
tree | 69f13a123e5f120ca7d74d8191b223e79f87fcf8 | |
parent | 69cb85aaca1e8d6bd7ef070fc1f2a3cb78b838f6 (diff) | |
download | efl-a4aac60a67a3be180a6461fe2d1cb794d452d80f.tar.gz |
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
-rw-r--r-- | src/lib/evas/canvas/evas_render.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/evas_render.c b/src/lib/evas/canvas/evas_render.c index 3047a36fd5..bc4f589e3b 100644 --- a/src/lib/evas/canvas/evas_render.c +++ b/src/lib/evas/canvas/evas_render.c @@ -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)) { |