From: Mike Blumenkrantz Date: Thu, 17 Sep 2015 20:46:46 +0000 (-0400) Subject: add smart callback for comp object damage calls X-Git-Tag: upstream/0.20.0~283 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=554eb76140106a845ab35ac90533d032cac0da2f;p=platform%2Fupstream%2Fenlightenment.git add smart callback for comp object damage calls related to the previous commit, this will allow api users to determine when a client needs to re-render with the least amount of overhead --- diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c index 71fb9e5..76036ce 100644 --- a/src/bin/e_comp_object.c +++ b/src/bin/e_comp_object.c @@ -3085,10 +3085,14 @@ E_API void e_comp_object_damage(Evas_Object *obj, int x, int y, int w, int h) { int tw, th; + Eina_Rectangle rect; API_ENTRY; if (cw->ec->input_only || (!cw->updates)) return; if (cw->nocomp) return; + rect.x = x, rect.y = y; + rect.w = w, rect.h = h; + evas_object_smart_callback_call(obj, "damage", &rect); if (e_comp->nocomp) { cw->nocomp_need_update = EINA_TRUE;