1 #include "evas_common.h"
2 #include "evas_private.h"
5 #include "evas_cs2_private.h"
9 /* #define REND_DGB 1 */
10 /* #define STDOUT_DBG 1 */
13 static FILE *dbf = NULL;
16 rend_dbg(const char *txt)
23 dbf = fopen("EVAS-RENDER-DEBUG.log", "w");
32 char __tmpbuf[4096]; \
34 snprintf(__tmpbuf, sizeof(__tmpbuf), ##args); \
39 char __tmpbuf[4096]; int __tmpi; \
40 for (__tmpi = 0; __tmpi < xxxx; __tmpi++) \
41 __tmpbuf[__tmpi] = ' '; \
42 __tmpbuf[__tmpi] = 0; \
51 evas_render_updates_internal(Evas *e, unsigned char make_updates, unsigned char do_draw);
54 evas_damage_rectangle_add(Evas *e, int x, int y, int w, int h)
58 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
61 NEW_RECT(r, x, y, w, h);
63 e->damages = eina_list_append(e->damages, r);
64 e->changed = EINA_TRUE;
68 evas_obscured_rectangle_add(Evas *e, int x, int y, int w, int h)
72 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
75 NEW_RECT(r, x, y, w, h);
77 e->obscures = eina_list_append(e->obscures, r);
81 evas_obscured_clear(Evas *e)
85 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
88 EINA_LIST_FREE(e->obscures, r)
90 eina_rectangle_free(r);
95 _evas_render_had_map(Evas_Object *obj)
97 return ((obj->prev.map) && (obj->prev.usemap));
98 // return ((!obj->cur.map) && (obj->prev.usemap));
102 _evas_render_is_relevant(Evas_Object *obj)
104 return ((evas_object_is_visible(obj) && (!obj->cur.have_clipees)) ||
105 (evas_object_was_visible(obj) && (!obj->prev.have_clipees)));
109 _evas_render_can_render(Evas_Object *obj)
111 return (evas_object_is_visible(obj) && (!obj->cur.have_clipees));
115 _evas_render_prev_cur_clip_cache_add(Evas *e, Evas_Object *obj)
117 e->engine.func->output_redraws_rect_add(e->engine.data.output,
118 obj->prev.cache.clip.x,
119 obj->prev.cache.clip.y,
120 obj->prev.cache.clip.w,
121 obj->prev.cache.clip.h);
122 e->engine.func->output_redraws_rect_add(e->engine.data.output,
123 obj->cur.cache.clip.x,
124 obj->cur.cache.clip.y,
125 obj->cur.cache.clip.w,
126 obj->cur.cache.clip.h);
130 _evas_render_cur_clip_cache_del(Evas *e, Evas_Object *obj)
132 Evas_Coord x, y, w, h;
134 x = obj->cur.cache.clip.x;
135 y = obj->cur.cache.clip.y;
136 w = obj->cur.cache.clip.w;
137 h = obj->cur.cache.clip.h;
138 if (obj->cur.clipper)
140 RECTS_CLIP_TO_RECT(x, y, w, h,
141 obj->cur.clipper->cur.cache.clip.x,
142 obj->cur.clipper->cur.cache.clip.y,
143 obj->cur.clipper->cur.cache.clip.w,
144 obj->cur.clipper->cur.cache.clip.h);
146 e->engine.func->output_redraws_rect_del(e->engine.data.output,
151 _evas_render_phase1_direct(Evas *e,
152 Eina_Array *active_objects,
153 Eina_Array *restack_objects __UNUSED__,
154 Eina_Array *delete_objects __UNUSED__,
155 Eina_Array *render_objects)
161 RD(" [--- PHASE 1 DIRECT\n");
162 for (i = 0; i < active_objects->count; i++)
166 obj = eina_array_data_get(active_objects, i);
169 /* Flag need redraw on proxy too */
170 evas_object_clip_recalc(obj);
171 EINA_LIST_FOREACH(obj->proxy.proxies, l, proxy)
172 proxy->proxy.redraw = EINA_TRUE;
175 for (i = 0; i < render_objects->count; i++)
179 obj = eina_array_data_get(render_objects, i);
180 RD(" OBJ [%p] changed %i\n", obj, obj->changed);
183 /* Flag need redraw on proxy too */
184 evas_object_clip_recalc(obj);
185 obj->func->render_pre(obj);
186 if (obj->proxy.redraw)
187 _evas_render_prev_cur_clip_cache_add(e, obj);
188 if (obj->proxy.proxies)
190 obj->proxy.redraw = EINA_TRUE;
191 EINA_LIST_FOREACH(obj->proxy.proxies, l, proxy)
193 proxy->func->render_pre(proxy);
194 _evas_render_prev_cur_clip_cache_add(e, proxy);
198 RD(" pre-render-done smart:%p|%p [%p, %i] | [%p, %i] has_map:%i had_map:%i\n",
200 evas_object_smart_members_get_direct(obj),
201 obj->cur.map, obj->cur.usemap,
202 obj->prev.map, obj->prev.usemap,
203 _evas_render_has_map(obj),
204 _evas_render_had_map(obj));
205 if ((obj->smart.smart) &&
206 (_evas_render_has_map(obj)))
208 RD(" has map + smart\n");
209 _evas_render_prev_cur_clip_cache_add(e, obj);
214 if (obj->smart.smart)
216 // obj->func->render_pre(obj);
218 else if ((obj->rect_del) ||
219 (evas_object_is_opaque(obj) && evas_object_is_visible(obj)))
222 _evas_render_cur_clip_cache_del(e, obj);
230 _evas_render_phase1_object_process(Evas *e, Evas_Object *obj,
231 Eina_Array *active_objects,
232 Eina_Array *restack_objects,
233 Eina_Array *delete_objects,
234 Eina_Array *render_objects,
237 Eina_Bool mapped_parent
243 Eina_Bool clean_them = EINA_FALSE;
248 //Need pre render for the children of mapped object.
249 //But only when they have changed.
250 if (mapped_parent && (!obj->changed)) return EINA_FALSE;
252 obj->rect_del = EINA_FALSE;
253 obj->render_pre = EINA_FALSE;
255 if (obj->delete_me == 2)
256 eina_array_push(delete_objects, obj);
257 else if (obj->delete_me != 0) obj->delete_me++;
258 /* If the object will be removed, we should not cache anything during this run. */
259 if (obj->delete_me != 0) clean_them = EINA_TRUE;
261 /* build active object list */
262 evas_object_clip_recalc(obj);
263 is_active = evas_object_is_active(obj);
264 obj->is_active = is_active;
267 RD(" [--- PROCESS [%p] '%s' active = %i, del = %i | %i %i %ix%i\n", obj, obj->type, is_active, obj->delete_me, obj->cur.geometry.x, obj->cur.geometry.y, obj->cur.geometry.w, obj->cur.geometry.h);
269 if ((!mapped_parent) && ((is_active) || (obj->delete_me != 0)))
270 eina_array_push(active_objects, obj);
276 RD(" [%p] vis: %i, cache.clip.vis: %i cache.clip.a: %i [%p]\n", obj, obj->cur.visible, obj->cur.cache.clip.visible, obj->cur.cache.clip.a, obj->func->is_visible);
280 map = _evas_render_has_map(obj);
281 hmap = _evas_render_had_map(obj);
283 if ((restack) && (!map))
287 eina_array_push(&e->pending_objects, obj);
288 obj->changed = EINA_TRUE;
290 obj->restack = EINA_TRUE;
291 clean_them = EINA_TRUE;
300 if (map != hmap) *redraw_all = 1;
302 if ((is_active) && (!obj->clip.clipees) &&
303 ((evas_object_is_visible(obj) && (!obj->cur.have_clipees)) ||
304 (evas_object_was_visible(obj) && (!obj->prev.have_clipees))))
306 eina_array_push(render_objects, obj);
307 _evas_render_prev_cur_clip_cache_add(e, obj);
308 obj->render_pre = EINA_TRUE;
310 if (obj->smart.smart)
312 EINA_INLIST_FOREACH(evas_object_smart_members_get_direct(obj), obj2)
314 _evas_render_phase1_object_process(e, obj2,
335 RD(" had map - restack objs\n");
336 // eina_array_push(restack_objects, obj);
337 _evas_render_prev_cur_clip_cache_add(e, obj);
342 if ((obj->cur.map) && (obj->cur.usemap)) map = EINA_TRUE;
351 /* handle normal rendering. this object knows how to handle maps */
354 if (obj->smart.smart)
357 RD(" changed + smart - render ok\n");
358 eina_array_push(render_objects, obj);
359 obj->render_pre = EINA_TRUE;
360 EINA_INLIST_FOREACH(evas_object_smart_members_get_direct(obj),
363 _evas_render_phase1_object_process(e, obj2,
379 if ((is_active) && (!obj->clip.clipees) &&
380 _evas_render_is_relevant(obj))
383 RD(" relevant + active\n");
385 eina_array_push(restack_objects, obj);
388 eina_array_push(render_objects, obj);
389 obj->render_pre = EINA_TRUE;
395 RD(" skip - not smart, not active or clippees or not relevant\n");
401 RD(" not changed... [%i] -> (%i %i %p %i) [%i]\n",
402 evas_object_is_visible(obj),
403 obj->cur.visible, obj->cur.cache.clip.visible, obj->smart.smart,
404 obj->cur.cache.clip.a, evas_object_was_visible(obj));
406 if ((!obj->clip.clipees) && (obj->delete_me == 0) &&
407 (_evas_render_can_render(obj) ||
408 (evas_object_was_visible(obj) && (!obj->prev.have_clipees))))
410 if (obj->smart.smart)
413 RD(" smart + visible/was visible + not clip\n");
414 eina_array_push(render_objects, obj);
415 obj->render_pre = EINA_TRUE;
417 (evas_object_smart_members_get_direct(obj), obj2)
419 _evas_render_phase1_object_process(e, obj2,
435 if (evas_object_is_opaque(obj) &&
436 evas_object_is_visible(obj))
439 RD(" opaque + visible\n");
440 eina_array_push(render_objects, obj);
441 obj->rect_del = EINA_TRUE;
443 else if (evas_object_is_visible(obj))
447 eina_array_push(render_objects, obj);
448 obj->render_pre = EINA_TRUE;
457 /* else if (obj->smart.smart)
460 RD(" smart + mot visible/was visible\n");
461 eina_array_push(render_objects, obj);
463 EINA_INLIST_FOREACH (evas_object_smart_members_get_direct(obj),
466 _evas_render_phase1_object_process(e, obj2,
481 if (!is_active) obj->restack = EINA_FALSE;
488 _evas_render_phase1_process(Evas *e,
489 Eina_Array *active_objects,
490 Eina_Array *restack_objects,
491 Eina_Array *delete_objects,
492 Eina_Array *render_objects,
496 Eina_Bool clean_them = EINA_FALSE;
498 RD(" [--- PHASE 1\n");
499 EINA_INLIST_FOREACH(e->layers, lay)
503 EINA_INLIST_FOREACH(lay->objects, obj)
505 clean_them |= _evas_render_phase1_object_process
506 (e, obj, active_objects, restack_objects, delete_objects,
507 render_objects, 0, redraw_all, EINA_FALSE
519 _evas_render_check_pending_objects(Eina_Array *pending_objects, Evas *e)
523 for (i = 0; i < pending_objects->count; ++i)
527 Eina_Bool ok = EINA_FALSE;
528 obj = eina_array_data_get(pending_objects, i);
529 if (!obj->layer) goto clean_stuff;
531 //If the children are in active objects, They should be cleaned up.
532 if (obj->changed_map && _evas_render_has_map(obj))
535 evas_object_clip_recalc(obj);
536 is_active = evas_object_is_active(obj);
538 if ((!is_active) && (!obj->is_active) && (!obj->render_pre) &&
545 if (obj->is_active == is_active)
549 if (obj->smart.smart)
551 if (obj->render_pre || obj->rect_del) ok = EINA_TRUE;
554 if ((is_active) && (obj->restack) && (!obj->clip.clipees) &&
555 (_evas_render_can_render(obj) ||
556 (evas_object_was_visible(obj) && (!obj->prev.have_clipees))))
558 if (!(obj->render_pre || obj->rect_del))
562 if (is_active && (!obj->clip.clipees) &&
563 (_evas_render_can_render(obj) ||
564 (evas_object_was_visible(obj) && (!obj->prev.have_clipees))))
566 if (obj->render_pre || obj->rect_del) ok = EINA_TRUE;
571 if ((!obj->clip.clipees) && (obj->delete_me == 0) &&
572 (!obj->cur.have_clipees || (evas_object_was_visible(obj) && (!obj->prev.have_clipees)))
573 && evas_object_is_opaque(obj) && evas_object_is_visible(obj))
575 if (obj->rect_del || obj->smart.smart) ok = EINA_TRUE;
583 eina_array_clean(&e->active_objects);
584 eina_array_clean(&e->render_objects);
585 eina_array_clean(&e->restack_objects);
586 eina_array_clean(&e->delete_objects);
587 e->invalidate = EINA_TRUE;
594 pending_change(void *data, void *gdata __UNUSED__)
599 if (obj->delete_me) return EINA_FALSE;
600 if (obj->pre_render_done)
602 RD(" OBJ [%p] pending change %i -> 0, pre %i\n", obj, obj->changed, obj->pre_render_done);
603 obj->pre_render_done = EINA_FALSE;
604 evas_object_change_reset(obj);
606 return obj->changed ? EINA_TRUE : EINA_FALSE;
610 _evas_render_can_use_overlay(Evas *e, Evas_Object *obj)
614 Eina_List *alphas = NULL;
615 Eina_List *opaques = NULL;
616 Evas_Object *video_parent = NULL;
618 Evas_Coord xc1, yc1, xc2, yc2;
622 video_parent = _evas_object_image_video_parent_get(obj);
624 /* Check if any one is the stack make this object mapped */
626 while (tmp && !_evas_render_has_map(tmp))
627 tmp = tmp->smart.parent;
629 if (tmp && _evas_render_has_map(tmp)) return EINA_FALSE; /* we are mapped, we can't be an overlay */
631 if (!evas_object_is_visible(obj)) return EINA_FALSE; /* no need to update the overlay if it's not visible */
633 /* If any recoloring of the surface is needed, n overlay to */
634 if ((obj->cur.cache.clip.r != 255) ||
635 (obj->cur.cache.clip.g != 255) ||
636 (obj->cur.cache.clip.b != 255) ||
637 (obj->cur.cache.clip.a != 255))
640 /* Check presence of transparent object on top of the video object */
641 EINA_RECTANGLE_SET(&zone,
642 obj->cur.cache.clip.x,
643 obj->cur.cache.clip.y,
644 obj->cur.cache.clip.w,
645 obj->cur.cache.clip.h);
647 for (i = e->active_objects.count - 1; i > 0; i--)
650 Eina_Rectangle *match;
651 Evas_Object *current;
653 int xm1, ym1, xm2, ym2;
655 current = eina_array_data_get(&e->active_objects, i);
657 /* Did we find the video object in the stack ? */
658 if (current == video_parent || current == obj)
661 EINA_RECTANGLE_SET(&self,
662 current->cur.cache.clip.x,
663 current->cur.cache.clip.y,
664 current->cur.cache.clip.w,
665 current->cur.cache.clip.h);
667 /* This doesn't cover the area of the video object, so don't bother with that object */
668 if (!eina_rectangles_intersect(&zone, &self))
671 xc1 = current->cur.cache.clip.x;
672 yc1 = current->cur.cache.clip.y;
673 xc2 = current->cur.cache.clip.x + current->cur.cache.clip.w;
674 yc2 = current->cur.cache.clip.y + current->cur.cache.clip.h;
676 if (evas_object_is_visible(current) &&
677 (!current->clip.clipees) &&
678 (current->cur.visible) &&
679 (!current->delete_me) &&
680 (current->cur.cache.clip.visible) &&
681 (!current->smart.smart))
683 Eina_Bool included = EINA_FALSE;
685 if (evas_object_is_opaque(current) ||
686 ((current->func->has_opaque_rect) &&
687 (current->func->has_opaque_rect(current))))
689 /* The object is opaque */
691 /* Check if the opaque object is inside another opaque object */
692 EINA_LIST_FOREACH(opaques, l, match)
696 xm2 = match->x + match->w;
697 ym2 = match->y + match->h;
699 /* Both object are included */
700 if (xc1 >= xm1 && yc1 >= ym1 && xc2 <= xm2 && yc2 <= ym2)
702 included = EINA_TRUE;
707 /* Not included yet */
713 r = eina_rectangle_new(current->cur.cache.clip.x, current->cur.cache.clip.y,
714 current->cur.cache.clip.w, current->cur.cache.clip.h);
716 opaques = eina_list_append(opaques, r);
721 /* Remove all the transparent object that are covered by the new opaque object */
722 EINA_LIST_FOREACH_SAFE(alphas, l, ln, match)
726 xm2 = match->x + match->w;
727 ym2 = match->y + match->h;
729 if (xm1 >= r->x && ym1 >= r->y && xm2 <= xn2 && ym2 <= yn2)
731 /* The new rectangle is over some transparent object,
732 so remove the transparent object */
733 alphas = eina_list_remove_list(alphas, l);
740 /* The object has some transparency */
742 /* Check if the transparent object is inside any other transparent object */
743 EINA_LIST_FOREACH(alphas, l, match)
747 xm2 = match->x + match->w;
748 ym2 = match->y + match->h;
750 /* Both object are included */
751 if (xc1 >= xm1 && yc1 >= ym1 && xc2 <= xm2 && yc2 <= ym2)
753 included = EINA_TRUE;
758 /* If not check if it is inside any opaque one */
761 EINA_LIST_FOREACH(opaques, l, match)
765 xm2 = match->x + match->w;
766 ym2 = match->y + match->h;
768 /* Both object are included */
769 if (xc1 >= xm1 && yc1 >= ym1 && xc2 <= xm2 && yc2 <= ym2)
771 included = EINA_TRUE;
777 /* No inclusion at all, so add it */
780 r = eina_rectangle_new(current->cur.cache.clip.x, current->cur.cache.clip.y,
781 current->cur.cache.clip.w, current->cur.cache.clip.h);
783 alphas = eina_list_append(alphas, r);
789 /* If there is any pending transparent object, then no overlay */
790 nooverlay = !!eina_list_count(alphas);
792 EINA_LIST_FREE(alphas, r)
793 eina_rectangle_free(r);
794 EINA_LIST_FREE(opaques, r)
795 eina_rectangle_free(r);
804 evas_render_mapped(Evas *e, Evas_Object *obj, void *context, void *surface,
805 int off_x, int off_y, int mapped,
806 int ecx, int ecy, int ecw, int ech
814 Eina_Bool clean_them = EINA_FALSE;
816 evas_object_clip_recalc(obj);
818 RD(" { evas_render_mapped(%p, %p, %p, %p, %i, %i, %i, %i)\n", e, obj, context, surface, off_x, off_y, mapped, level);
821 if ((!evas_object_is_visible(obj)) || (obj->clip.clipees) ||
822 (obj->cur.have_clipees))
829 else if (!(((evas_object_is_active(obj) && (!obj->clip.clipees) &&
830 (_evas_render_can_render(obj))))
838 // set render_pre - for child objs that may not have gotten it.
839 obj->pre_render_done = EINA_TRUE;
840 RD(" Hasmap: %p (%d) %p %d -> %d\n",obj->func->can_map,
841 obj->func->can_map ? obj->func->can_map(obj): -1,
842 obj->cur.map, obj->cur.usemap,
843 _evas_render_has_map(obj));
844 if (_evas_render_has_map(obj))
847 Eina_Bool changed = EINA_FALSE, rendered = EINA_FALSE;
849 clean_them = EINA_TRUE;
851 sw = obj->cur.geometry.w;
852 sh = obj->cur.geometry.h;
854 RD(" mapped obj: %ix%i\n", sw, sh);
855 if ((sw <= 0) || (sh <= 0))
862 evas_object_map_update(obj, off_x, off_y, sw, sh, sw, sh);
864 if (obj->cur.map->surface)
866 if ((obj->cur.map->surface_w != sw) ||
867 (obj->cur.map->surface_h != sh))
870 RD(" new surf: %ix%i\n", sw, sh);
871 obj->layer->evas->engine.func->image_map_surface_free
872 (e->engine.data.output, obj->cur.map->surface);
873 obj->cur.map->surface = NULL;
876 if (!obj->cur.map->surface)
878 obj->cur.map->surface_w = sw;
879 obj->cur.map->surface_h = sh;
881 obj->cur.map->surface =
882 obj->layer->evas->engine.func->image_map_surface_new
883 (e->engine.data.output, obj->cur.map->surface_w,
884 obj->cur.map->surface_h,
885 obj->cur.map->alpha);
887 RD(" fisrt surf: %ix%i\n", sw, sh);
890 if (obj->smart.smart)
894 EINA_INLIST_FOREACH(evas_object_smart_members_get_direct(obj), o2)
896 if (!evas_object_is_visible(o2) &&
897 !evas_object_was_visible(o2))
899 evas_object_change_reset(o2);
905 evas_object_change_reset(o2);
909 if (obj->changed_color) changed = EINA_TRUE;
910 evas_object_change_reset(obj);
912 else if (obj->changed)
914 if (((obj->changed_pchange) && (obj->changed_map)) ||
915 (obj->changed_color))
917 evas_object_change_reset(obj);
920 // clear surface before re-render
921 if ((changed) && (obj->cur.map->surface))
926 RD(" children redraw\n");
927 // FIXME: calculate "changes" within map surface and only clear
928 // and re-render those
929 if (obj->cur.map->alpha)
931 ctx = e->engine.func->context_new(e->engine.data.output);
932 e->engine.func->context_color_set
933 (e->engine.data.output, ctx, 0, 0, 0, 0);
934 e->engine.func->context_render_op_set
935 (e->engine.data.output, ctx, EVAS_RENDER_COPY);
936 e->engine.func->rectangle_draw(e->engine.data.output,
938 obj->cur.map->surface,
940 obj->cur.map->surface_w,
941 obj->cur.map->surface_h);
942 e->engine.func->context_free(e->engine.data.output, ctx);
944 ctx = e->engine.func->context_new(e->engine.data.output);
945 off_x2 = -obj->cur.geometry.x;
946 off_y2 = -obj->cur.geometry.y;
947 if (obj->smart.smart)
950 (evas_object_smart_members_get_direct(obj), obj2)
952 clean_them |= evas_render_mapped(e, obj2, ctx,
953 obj->cur.map->surface,
964 int x = 0, y = 0, w = 0, h = 0;
966 w = obj->cur.map->surface_w;
967 h = obj->cur.map->surface_h;
968 RECTS_CLIP_TO_RECT(x, y, w, h,
969 obj->cur.geometry.x + off_x2,
970 obj->cur.geometry.y + off_y2,
972 obj->cur.geometry.h);
974 e->engine.func->context_clip_set(e->engine.data.output,
976 obj->func->render(obj, e->engine.data.output, ctx,
977 obj->cur.map->surface, off_x2, off_y2);
979 e->engine.func->context_free(e->engine.data.output, ctx);
980 rendered = EINA_TRUE;
988 obj->cur.map->surface = e->engine.func->image_dirty_region
989 (e->engine.data.output, obj->cur.map->surface,
990 0, 0, obj->cur.map->surface_w, obj->cur.map->surface_h);
992 e->engine.func->context_clip_unset(e->engine.data.output,
994 if (obj->cur.map->surface)
996 if (obj->smart.smart)
998 if (obj->cur.clipper)
1003 obj->cur.cache.clip.dirty = EINA_TRUE;
1004 tobj = obj->cur.map_parent;
1005 obj->cur.map_parent = obj->cur.clipper->cur.map_parent;
1006 evas_object_clip_recalc(obj);
1007 obj->cur.map_parent = tobj;
1008 x = obj->cur.cache.clip.x;
1009 y = obj->cur.cache.clip.y;
1010 w = obj->cur.cache.clip.w;
1011 h = obj->cur.cache.clip.h;
1012 RECTS_CLIP_TO_RECT(x, y, w, h,
1013 obj->cur.clipper->cur.cache.clip.x,
1014 obj->cur.clipper->cur.cache.clip.y,
1015 obj->cur.clipper->cur.cache.clip.w,
1016 obj->cur.clipper->cur.cache.clip.h);
1017 e->engine.func->context_clip_set(e->engine.data.output,
1019 x + off_x, y + off_y, w, h);
1024 if (obj->cur.clipper)
1028 evas_object_clip_recalc(obj);
1029 x = obj->cur.cache.clip.x;
1030 y = obj->cur.cache.clip.y;
1031 w = obj->cur.cache.clip.w;
1032 h = obj->cur.cache.clip.h;
1033 RECTS_CLIP_TO_RECT(x, y, w, h,
1034 obj->cur.clipper->cur.cache.clip.x,
1035 obj->cur.clipper->cur.cache.clip.y,
1036 obj->cur.clipper->cur.cache.clip.w,
1037 obj->cur.clipper->cur.cache.clip.h);
1038 e->engine.func->context_clip_set(e->engine.data.output,
1040 x + off_x, y + off_y, w, h);
1044 // if (surface == e->engine.data.output)
1045 e->engine.func->context_clip_clip(e->engine.data.output,
1047 ecx, ecy, ecw, ech);
1048 if (obj->cur.cache.clip.visible)
1050 obj->layer->evas->engine.func->context_multiplier_unset
1051 (e->engine.data.output, context);
1052 obj->layer->evas->engine.func->image_map_draw
1053 (e->engine.data.output, context, surface,
1054 obj->cur.map->surface, obj->spans,
1055 obj->cur.map->smooth, 0);
1057 // FIXME: needs to cache these maps and
1058 // keep them only rendering updates
1059 // obj->layer->evas->engine.func->image_map_surface_free
1060 // (e->engine.data.output, obj->cur.map->surface);
1061 // obj->cur.map->surface = NULL;
1065 if (0 && obj->cur.cached_surface)
1066 fprintf(stderr, "We should cache '%s' [%i, %i, %i, %i]\n",
1067 evas_object_type_get(obj),
1068 obj->cur.bounding_box.x, obj->cur.bounding_box.x,
1069 obj->cur.bounding_box.w, obj->cur.bounding_box.h);
1073 RD(" draw child of mapped obj\n");
1074 ctx = e->engine.func->context_new(e->engine.data.output);
1075 if (obj->smart.smart)
1078 (evas_object_smart_members_get_direct(obj), obj2)
1080 clean_them |= evas_render_mapped(e, obj2, ctx,
1098 x = obj->cur.cache.clip.x + off_x;
1099 y = obj->cur.cache.clip.y + off_y;
1100 w = obj->cur.cache.clip.w;
1101 h = obj->cur.cache.clip.h;
1103 if (obj->cur.clipper)
1105 if (_evas_render_has_map(obj))
1106 evas_object_clip_recalc(obj);
1108 RD(" clipper: %i %i %ix%i\n",
1109 obj->cur.clipper->cur.cache.clip.x + off_x,
1110 obj->cur.clipper->cur.cache.clip.y + off_y,
1111 obj->cur.clipper->cur.cache.clip.w,
1112 obj->cur.clipper->cur.cache.clip.h);
1114 RECTS_CLIP_TO_RECT(x, y, w, h,
1115 obj->cur.clipper->cur.cache.clip.x + off_x,
1116 obj->cur.clipper->cur.cache.clip.y + off_y,
1117 obj->cur.clipper->cur.cache.clip.w,
1118 obj->cur.clipper->cur.cache.clip.h);
1121 RD(" clip: %i %i %ix%i [%i %i %ix%i]\n",
1122 obj->cur.cache.clip.x + off_x,
1123 obj->cur.cache.clip.y + off_y,
1124 obj->cur.cache.clip.w,
1125 obj->cur.cache.clip.h,
1126 obj->cur.geometry.x + off_x,
1127 obj->cur.geometry.y + off_y,
1128 obj->cur.geometry.w,
1129 obj->cur.geometry.h);
1130 e->engine.func->context_clip_set(e->engine.data.output,
1138 obj->func->render(obj, e->engine.data.output, ctx,
1139 surface, off_x, off_y);
1141 obj->layer->evas->engine.func->context_color_set(e->engine.data.output,
1144 obj->layer->evas->engine.func->rectangle_draw(e->engine.data.output,
1150 e->engine.func->context_free(e->engine.data.output, ctx);
1154 if (obj->cur.clipper)
1158 if (_evas_render_has_map(obj))
1159 evas_object_clip_recalc(obj);
1160 x = obj->cur.cache.clip.x;
1161 y = obj->cur.cache.clip.y;
1162 w = obj->cur.cache.clip.w;
1163 h = obj->cur.cache.clip.h;
1164 RECTS_CLIP_TO_RECT(x, y, w, h,
1165 obj->cur.clipper->cur.cache.clip.x,
1166 obj->cur.clipper->cur.cache.clip.y,
1167 obj->cur.clipper->cur.cache.clip.w,
1168 obj->cur.clipper->cur.cache.clip.h);
1169 e->engine.func->context_clip_set(e->engine.data.output,
1171 x + off_x, y + off_y, w, h);
1172 e->engine.func->context_clip_clip(e->engine.data.output,
1174 ecx, ecy, ecw, ech);
1178 RD(" draw normal obj\n");
1179 obj->func->render(obj, e->engine.data.output, context, surface,
1182 if (obj->changed_map) clean_them = EINA_TRUE;
1191 _evas_render_cutout_add(Evas *e, Evas_Object *obj, int off_x, int off_y)
1193 if (evas_object_is_opaque(obj))
1195 Evas_Coord cox, coy, cow, coh;
1197 cox = obj->cur.cache.clip.x;
1198 coy = obj->cur.cache.clip.y;
1199 cow = obj->cur.cache.clip.w;
1200 coh = obj->cur.cache.clip.h;
1201 if ((obj->cur.map) && (obj->cur.usemap))
1206 while (oo->cur.clipper)
1208 if ((oo->cur.clipper->cur.map_parent
1209 != oo->cur.map_parent) &&
1210 (!((oo->cur.map) && (oo->cur.usemap))))
1212 RECTS_CLIP_TO_RECT(cox, coy, cow, coh,
1216 oo->cur.geometry.h);
1217 oo = oo->cur.clipper;
1220 e->engine.func->context_cutout_add
1221 (e->engine.data.output, e->engine.data.context,
1222 cox + off_x, coy + off_y, cow, coh);
1226 if (obj->func->get_opaque_rect)
1228 Evas_Coord obx, oby, obw, obh;
1230 obj->func->get_opaque_rect(obj, &obx, &oby, &obw, &obh);
1231 if ((obw > 0) && (obh > 0))
1235 RECTS_CLIP_TO_RECT(obx, oby, obw, obh,
1236 obj->cur.cache.clip.x + off_x,
1237 obj->cur.cache.clip.y + off_y,
1238 obj->cur.cache.clip.w,
1239 obj->cur.cache.clip.h);
1240 e->engine.func->context_cutout_add
1241 (e->engine.data.output, e->engine.data.context,
1242 obx, oby, obw, obh);
1249 evas_render_updates_internal(Evas *e,
1250 unsigned char make_updates,
1251 unsigned char do_draw)
1254 Eina_List *updates = NULL;
1257 Eina_Bool clean_them = EINA_FALSE;
1264 Eina_Bool haveup = 0;
1266 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
1269 if (!e->changed) return NULL;
1272 if (evas_cserve2_use_get())
1273 evas_cserve2_dispatch();
1275 evas_call_smarts_calculate(e);
1277 RD("[--- RENDER EVAS (size: %ix%i)\n", e->viewport.w, e->viewport.h);
1279 evas_event_callback_call(e, EVAS_CALLBACK_RENDER_PRE, NULL);
1281 /* Check if the modified object mean recalculating every thing */
1283 _evas_render_check_pending_objects(&e->pending_objects, e);
1285 /* phase 1. add extra updates for changed objects */
1286 if (e->invalidate || e->render_objects.count <= 0)
1287 clean_them = _evas_render_phase1_process(e,
1289 &e->restack_objects,
1294 /* phase 1.5. check if the video should be inlined or stay in their overlay */
1295 alpha = e->engine.func->canvas_alpha_get(e->engine.data.output,
1296 e->engine.data.context);
1298 EINA_LIST_FOREACH(e->video_objects, ll, obj)
1300 /* we need the surface to be transparent to display the underlying overlay */
1301 if (alpha && _evas_render_can_use_overlay(e, obj))
1302 _evas_object_image_video_overlay_show(obj);
1304 _evas_object_image_video_overlay_hide(obj);
1306 /* phase 1.8. pre render for proxy */
1307 _evas_render_phase1_direct(e, &e->active_objects, &e->restack_objects,
1308 &e->delete_objects, &e->render_objects);
1310 /* phase 2. force updates for restacks */
1311 for (i = 0; i < e->restack_objects.count; ++i)
1313 obj = eina_array_data_get(&e->restack_objects, i);
1314 obj->func->render_pre(obj);
1315 _evas_render_prev_cur_clip_cache_add(e, obj);
1317 eina_array_clean(&e->restack_objects);
1319 /* phase 3. add exposes */
1320 EINA_LIST_FREE(e->damages, r)
1322 e->engine.func->output_redraws_rect_add(e->engine.data.output,
1323 r->x, r->y, r->w, r->h);
1324 eina_rectangle_free(r);
1327 /* phase 4. framespace, output & viewport changes */
1328 if (e->viewport.changed)
1330 e->engine.func->output_redraws_rect_add(e->engine.data.output,
1332 e->output.w, e->output.h);
1334 if (e->output.changed)
1336 e->engine.func->output_resize(e->engine.data.output,
1337 e->output.w, e->output.h);
1338 e->engine.func->output_redraws_rect_add(e->engine.data.output,
1340 e->output.w, e->output.h);
1342 if ((e->output.w != e->viewport.w) || (e->output.h != e->viewport.h))
1344 ERR("viewport size != output size!");
1347 if (e->framespace.changed)
1351 fx = e->viewport.x - e->framespace.x;
1352 fy = e->viewport.y - e->framespace.y;
1353 fw = e->viewport.w + e->framespace.w;
1354 fh = e->viewport.h + e->framespace.h;
1357 e->engine.func->output_redraws_rect_add(e->engine.data.output,
1361 /* phase 4.5: check if object is not in framespace. if not, we need to clip
1362 * it to the 'master' clip.
1364 * NB: This is for the wayland engine(s). If we do not do this, then
1365 * objects will draw outside the viewport and potentially onto the frame
1367 if (!strncmp(e->engine.module->definition->name, "wayland", 7))
1369 Eina_Rectangle clip_rect;
1371 /* see if the master clip has been added yet, if not, then create */
1372 if (!e->framespace.clip)
1374 e->framespace.clip = evas_object_rectangle_add(e);
1375 evas_object_color_set(e->framespace.clip, 255, 255, 255, 255);
1376 evas_object_move(e->framespace.clip,
1377 e->framespace.x, e->framespace.y);
1378 evas_object_resize(e->framespace.clip,
1379 e->viewport.w - e->framespace.w,
1380 e->viewport.h - e->framespace.h);
1381 evas_object_show(e->framespace.clip);
1385 /* master clip is already present. check for size changes in the
1386 * viewport, and update master clip size if needed */
1387 if ((e->viewport.changed) || (e->output.changed))
1389 evas_object_resize(e->framespace.clip,
1390 e->viewport.w - e->framespace.w,
1391 e->viewport.h - e->framespace.h);
1395 EINA_RECTANGLE_SET(&clip_rect,
1396 e->framespace.clip->cur.geometry.x,
1397 e->framespace.clip->cur.geometry.y,
1398 e->framespace.clip->cur.geometry.w,
1399 e->framespace.clip->cur.geometry.h)
1401 /* With the master clip all setup, we need to loop the objects on this
1402 * canvas and determine if the object is in the viewport space. If it
1403 * is in the viewport space (and not in framespace), then we need to
1404 * clip the object to the master clip so that it does not draw on top
1405 * of the frame (eg: elm 3d test) */
1406 for (i = 0; i < e->render_objects.count; ++i)
1408 Eina_Rectangle obj_rect;
1411 obj = eina_array_data_get(&e->render_objects, i);
1412 if (evas_object_is_frame_object_get(obj))
1415 if (obj->delete_me) continue;
1417 EINA_RECTANGLE_SET(&obj_rect,
1418 obj->cur.geometry.x, obj->cur.geometry.y,
1419 obj->cur.geometry.w, obj->cur.geometry.h);
1421 /* if the object does not intersect our clip rect, ignore it */
1422 if (!eina_rectangles_intersect(&clip_rect, &obj_rect))
1425 if (!(pclip = evas_object_clip_get(obj)))
1427 /* clip this object so it does not draw on the window frame */
1428 evas_object_clip_set(obj, e->framespace.clip);
1435 e->engine.func->output_redraws_rect_add(e->engine.data.output, 0, 0,
1436 e->output.w, e->output.h);
1439 /* phase 5. add obscures */
1440 EINA_LIST_FOREACH(e->obscures, ll, r)
1442 e->engine.func->output_redraws_rect_del(e->engine.data.output,
1443 r->x, r->y, r->w, r->h);
1445 /* build obscure objects list of active objects that obscure */
1446 for (i = 0; i < e->active_objects.count; ++i)
1448 obj = eina_array_data_get(&e->active_objects, i);
1449 if (UNLIKELY((evas_object_is_opaque(obj) ||
1450 ((obj->func->has_opaque_rect) &&
1451 (obj->func->has_opaque_rect(obj)))) &&
1452 evas_object_is_visible(obj) &&
1453 (!obj->clip.clipees) &&
1454 (obj->cur.visible) &&
1455 (!obj->delete_me) &&
1456 (obj->cur.cache.clip.visible) &&
1457 (!obj->smart.smart)))
1458 /* obscuring_objects = eina_list_append(obscuring_objects, obj); */
1459 eina_array_push(&e->obscuring_objects, obj);
1462 /* save this list */
1463 /* obscuring_objects_orig = obscuring_objects; */
1464 /* obscuring_objects = NULL; */
1465 /* phase 6. go thru each update rect and render objects in it*/
1468 unsigned int offset = 0;
1471 e->engine.func->output_redraws_next_update_get
1472 (e->engine.data.output,
1474 &cx, &cy, &cw, &ch)))
1478 RD(" [--- UPDATE %i %i %ix%i\n", ux, uy, uw, uh);
1481 Eina_Rectangle *rect;
1483 NEW_RECT(rect, ux, uy, uw, uh);
1485 updates = eina_list_append(updates, rect);
1490 /* build obscuring objects list (in order from bottom to top) */
1493 e->engine.func->context_clip_set(e->engine.data.output,
1494 e->engine.data.context,
1495 ux + off_x, uy + off_y, uw, uh);
1497 for (i = 0; i < e->obscuring_objects.count; ++i)
1499 obj = (Evas_Object *)eina_array_data_get
1500 (&e->obscuring_objects, i);
1501 if (evas_object_is_in_output_rect(obj, ux, uy, uw, uh))
1503 eina_array_push(&e->temporary_objects, obj);
1505 /* reset the background of the area if needed (using cutout and engine alpha flag to help) */
1507 _evas_render_cutout_add(e, obj, off_x, off_y);
1512 e->engine.func->context_color_set(e->engine.data.output,
1513 e->engine.data.context,
1515 e->engine.func->context_multiplier_unset
1516 (e->engine.data.output, e->engine.data.context);
1517 e->engine.func->context_render_op_set(e->engine.data.output,
1518 e->engine.data.context,
1520 e->engine.func->rectangle_draw(e->engine.data.output,
1521 e->engine.data.context,
1524 e->engine.func->context_cutout_clear(e->engine.data.output,
1525 e->engine.data.context);
1526 e->engine.func->context_clip_unset(e->engine.data.output,
1527 e->engine.data.context);
1530 /* render all object that intersect with rect */
1531 for (i = 0; i < e->active_objects.count; ++i)
1533 obj = eina_array_data_get(&e->active_objects, i);
1535 /* if it's in our outpout rect and it doesn't clip anything */
1536 RD(" OBJ: [%p] '%s' %i %i %ix%i\n", obj, obj->type, obj->cur.geometry.x, obj->cur.geometry.y, obj->cur.geometry.w, obj->cur.geometry.h);
1537 if ((evas_object_is_in_output_rect(obj, ux, uy, uw, uh) ||
1538 (obj->smart.smart)) &&
1539 (!obj->clip.clipees) &&
1540 (obj->cur.visible) &&
1541 (!obj->delete_me) &&
1542 (obj->cur.cache.clip.visible) &&
1543 // (!obj->smart.smart) &&
1544 ((obj->cur.color.a > 0 || obj->cur.render_op != EVAS_RENDER_BLEND)))
1548 RD(" DRAW (vis: %i, a: %i, clipees: %p\n", obj->cur.visible, obj->cur.color.a, obj->clip.clipees);
1549 if ((e->temporary_objects.count > offset) &&
1550 (eina_array_data_get(&e->temporary_objects, offset) == obj))
1552 x = cx; y = cy; w = cw; h = ch;
1553 if (((w > 0) && (h > 0)) || (obj->smart.smart))
1555 if (!obj->smart.smart)
1557 RECTS_CLIP_TO_RECT(x, y, w, h,
1558 obj->cur.cache.clip.x + off_x,
1559 obj->cur.cache.clip.y + off_y,
1560 obj->cur.cache.clip.w,
1561 obj->cur.cache.clip.h);
1564 e->engine.func->context_mask_set(e->engine.data.output,
1565 e->engine.data.context,
1566 obj->cur.mask->func->engine_data_get(obj->cur.mask),
1567 obj->cur.mask->cur.geometry.x + off_x,
1568 obj->cur.mask->cur.geometry.y + off_y,
1569 obj->cur.mask->cur.geometry.w,
1570 obj->cur.mask->cur.geometry.h);
1572 e->engine.func->context_mask_unset(e->engine.data.output,
1573 e->engine.data.context);
1574 e->engine.func->context_clip_set(e->engine.data.output,
1575 e->engine.data.context,
1577 #if 1 /* FIXME: this can slow things down... figure out optimum... coverage */
1578 for (j = offset; j < e->temporary_objects.count; ++j)
1582 obj2 = (Evas_Object *)eina_array_data_get
1583 (&e->temporary_objects, j);
1584 _evas_render_cutout_add(e, obj2, off_x, off_y);
1587 clean_them |= evas_render_mapped(e, obj, e->engine.data.context,
1588 surface, off_x, off_y, 0,
1594 e->engine.func->context_cutout_clear(e->engine.data.output,
1595 e->engine.data.context);
1599 /* punch rect out */
1600 e->engine.func->output_redraws_next_update_push(e->engine.data.output,
1603 /* free obscuring objects list */
1604 eina_array_clean(&e->temporary_objects);
1610 evas_event_callback_call(e, EVAS_CALLBACK_RENDER_FLUSH_PRE, NULL);
1611 e->engine.func->output_flush(e->engine.data.output);
1612 evas_event_callback_call(e, EVAS_CALLBACK_RENDER_FLUSH_POST, NULL);
1616 e->engine.func->output_redraws_clear(e->engine.data.output);
1617 /* and do a post render pass */
1618 for (i = 0; i < e->active_objects.count; ++i)
1620 obj = eina_array_data_get(&e->active_objects, i);
1621 obj->pre_render_done = EINA_FALSE;
1622 RD(" OBJ [%p] post... %i %i\n", obj, obj->changed, do_draw);
1623 if ((obj->changed) && (do_draw))
1625 RD(" OBJ [%p] post... func1\n", obj);
1626 obj->func->render_post(obj);
1627 obj->restack = EINA_FALSE;
1628 evas_object_change_reset(obj);
1630 else if (clean_them)
1632 RD(" OBJ [%p] post... func2\n", obj);
1633 obj->func->render_post(obj);
1634 obj->restack = EINA_FALSE;
1635 evas_object_change_reset(obj);
1637 /* moved to other pre-process phase 1
1638 if (obj->delete_me == 2)
1640 delete_objects = eina_list_append(delete_objects, obj);
1642 else if (obj->delete_me != 0) obj->delete_me++;
1645 /* free our obscuring object list */
1646 eina_array_clean(&e->obscuring_objects);
1648 /* If some object are still marked as changed, do not remove
1649 them from the pending list. */
1650 eina_array_remove(&e->pending_objects, pending_change, NULL);
1652 for (i = 0; i < e->render_objects.count; ++i)
1654 obj = eina_array_data_get(&e->render_objects, i);
1655 obj->pre_render_done = EINA_FALSE;
1658 /* delete all objects flagged for deletion now */
1659 for (i = 0; i < e->delete_objects.count; ++i)
1661 obj = eina_array_data_get(&e->delete_objects, i);
1662 evas_object_free(obj, 1);
1664 eina_array_clean(&e->delete_objects);
1666 e->changed = EINA_FALSE;
1667 e->viewport.changed = EINA_FALSE;
1668 e->output.changed = EINA_FALSE;
1669 e->framespace.changed = EINA_FALSE;
1670 e->invalidate = EINA_FALSE;
1672 // always clean... lots of mem waste!
1673 /* If their are some object to restack or some object to delete,
1674 * it's useless to keep the render object list around. */
1677 eina_array_clean(&e->active_objects);
1678 eina_array_clean(&e->render_objects);
1679 eina_array_clean(&e->restack_objects);
1680 eina_array_clean(&e->temporary_objects);
1681 eina_array_clean(&e->clip_changes);
1682 /* we should flush here and have a mempool system for this
1683 eina_array_flush(&e->active_objects);
1684 eina_array_flush(&e->render_objects);
1685 eina_array_flush(&e->restack_objects);
1686 eina_array_flush(&e->delete_objects);
1687 eina_array_flush(&e->obscuring_objects);
1688 eina_array_flush(&e->temporary_objects);
1689 eina_array_flush(&e->clip_changes);
1691 e->invalidate = EINA_TRUE;
1694 evas_module_clean();
1696 evas_event_callback_call(e, EVAS_CALLBACK_RENDER_POST, NULL);
1704 evas_render_updates_free(Eina_List *updates)
1708 EINA_LIST_FREE(updates, r)
1709 eina_rectangle_free(r);
1713 evas_render_updates(Evas *e)
1715 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
1719 if (!e->changed) return NULL;
1720 return evas_render_updates_internal(e, 1, 1);
1724 evas_render(Evas *e)
1726 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
1730 if (!e->changed) return;
1731 evas_render_updates_internal(e, 0, 1);
1735 evas_norender(Evas *e)
1737 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
1741 // if (!e->changed) return;
1742 evas_render_updates_internal(e, 0, 0);
1746 evas_render_idle_flush(Evas *e)
1748 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
1752 evas_fonts_zero_presure(e);
1754 if ((e->engine.func) && (e->engine.func->output_idle_flush) &&
1755 (e->engine.data.output))
1756 e->engine.func->output_idle_flush(e->engine.data.output);
1758 eina_array_flush(&e->active_objects);
1759 eina_array_flush(&e->render_objects);
1760 eina_array_flush(&e->restack_objects);
1761 eina_array_flush(&e->delete_objects);
1762 eina_array_flush(&e->obscuring_objects);
1763 eina_array_flush(&e->temporary_objects);
1764 eina_array_flush(&e->clip_changes);
1766 e->invalidate = EINA_TRUE;
1776 _evas_render_dump_map_surfaces(Evas_Object *obj)
1778 if ((obj->cur.map) && obj->cur.map->surface)
1780 obj->layer->evas->engine.func->image_map_surface_free
1781 (obj->layer->evas->engine.data.output, obj->cur.map->surface);
1782 obj->cur.map->surface = NULL;
1785 if (obj->smart.smart)
1789 EINA_INLIST_FOREACH(evas_object_smart_members_get_direct(obj), obj2)
1790 _evas_render_dump_map_surfaces(obj2);
1795 evas_render_dump(Evas *e)
1799 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
1803 EINA_INLIST_FOREACH(e->layers, lay)
1807 EINA_INLIST_FOREACH(lay->objects, obj)
1809 if ((obj->type) && (!strcmp(obj->type, "image")))
1810 evas_object_inform_call_image_unloaded(obj);
1811 _evas_render_dump_map_surfaces(obj);
1814 if ((e->engine.func) && (e->engine.func->output_dump) &&
1815 (e->engine.data.output))
1816 e->engine.func->output_dump(e->engine.data.output);
1820 evas_render_invalidate(Evas *e)
1822 MAGIC_CHECK(e, Evas, MAGIC_EVAS);
1826 eina_array_clean(&e->active_objects);
1827 eina_array_clean(&e->render_objects);
1829 eina_array_flush(&e->restack_objects);
1830 eina_array_flush(&e->delete_objects);
1832 e->invalidate = EINA_TRUE;
1836 evas_render_object_recalc(Evas_Object *obj)
1838 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
1842 if ((!obj->changed) && (obj->delete_me < 2))
1846 e = obj->layer->evas;
1847 if ((!e) || (e->cleanup)) return;
1848 eina_array_push(&e->pending_objects, obj);
1849 obj->changed = EINA_TRUE;
1853 /* vim:set ts=8 sw=3 sts=3 expandtab cino=>5n-2f0^-2{2(0W1st0 :*/