evas: render - use evas_object_clipees_has instead of evas_object_clipees_get
authorAmitesh Singh <amitesh.sh@samsung.com>
Thu, 15 Oct 2015 09:30:11 +0000 (15:00 +0530)
committerAmitesh Singh <amitesh.sh@samsung.com>
Thu, 15 Oct 2015 09:32:22 +0000 (15:02 +0530)
evas_object_clipees_has is far cheaper than evas_object_clipees_get in case of checking if
clipees exist or not. This should improve the performance in case of large set of clipees.

@fix

src/lib/evas/canvas/evas_render.c

index c5848c3..721a420 100644 (file)
@@ -2541,7 +2541,7 @@ evas_render_updates_internal(Evas *eo_e,
                   evas_object_clip_set(obj->object, e->framespace.clip);
                }
           }
-        if (!evas_object_clipees_get(e->framespace.clip))
+        if (!evas_object_clipees_has(e->framespace.clip))
           evas_object_hide(e->framespace.clip);
         evas_event_thaw(eo_e);
      }