aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_layer.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-02-20 18:07:00 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-02-21 10:52:39 +0900
commitd150cdfd9d3ef32cceaf2db93a57f9b4a53aaf55 (patch)
treee7be95b15f784c1ab4375edd7e28c12020c9a522 /src/lib/evas/canvas/evas_layer.c
parentevas: Optimize out more calls to efl_isa (diff)
downloadefl-d150cdfd9d3ef32cceaf2db93a57f9b4a53aaf55.tar.gz
evas: Assume object is valid and avoid call to efl_isa
In an internal function we should be able to safely assume an object is indeed a smart object. @optimization
Diffstat (limited to 'src/lib/evas/canvas/evas_layer.c')
-rw-r--r--src/lib/evas/canvas/evas_layer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_layer.c b/src/lib/evas/canvas/evas_layer.c
index 11bbe033ac..a92f6d7a0a 100644
--- a/src/lib/evas/canvas/evas_layer.c
+++ b/src/lib/evas/canvas/evas_layer.c
@@ -252,7 +252,7 @@ _efl_canvas_object_efl_gfx_stack_layer_set(Eo *eo_obj, Evas_Object_Protected_Dat
1, 1, EINA_TRUE,
NULL);
}
- else
+ else if (obj->is_smart)
{
Eina_Inlist *contained;
Evas_Object_Protected_Data *member;