summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-08-25 10:54:52 -0700
committerCedric BAIL <cedric@osg.samsung.com>2017-08-25 10:54:52 -0700
commitcce4dcc58e8b9bdda8caa15ed824b0dbc23a3fb1 (patch)
treea57c445f85f3e2785ea67748991c962752c3811f
parent545c1a70f4d09a147949b00b06f4bc15a572bce0 (diff)
evas: remove dead code to improve readability.
-rw-r--r--src/lib/evas/canvas/evas_render.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/lib/evas/canvas/evas_render.c b/src/lib/evas/canvas/evas_render.c
index 1dd914148d..2527243ef2 100644
--- a/src/lib/evas/canvas/evas_render.c
+++ b/src/lib/evas/canvas/evas_render.c
@@ -288,7 +288,6 @@ static Eina_Bool
288_evas_render_had_map(Evas_Object_Protected_Data *obj) 288_evas_render_had_map(Evas_Object_Protected_Data *obj)
289{ 289{
290 return ((obj->map->prev.map) && (obj->map->prev.usemap)); 290 return ((obj->map->prev.map) && (obj->map->prev.usemap));
291 // return ((!obj->map->cur.map) && (obj->prev->usemap));
292} 291}
293 292
294static Eina_Bool 293static Eina_Bool
@@ -514,7 +513,6 @@ _evas_render_phase1_direct(Evas_Public_Data *e,
514 { 513 {
515 if (obj->is_smart) 514 if (obj->is_smart)
516 { 515 {
517 // obj->func->render_pre(eo_obj);
518 } 516 }
519 else if (evas_object_is_visible(eo_obj, obj) && 517 else if (evas_object_is_visible(eo_obj, obj) &&
520 ((obj->rect_del) || 518 ((obj->rect_del) ||
@@ -1674,9 +1672,6 @@ _mask_apply_inside_proxy(Evas_Proxy_Render_Data *proxy_render_data,
1674 1672
1675 // FIXME: Need to implement a logic similar to _proxy_context_clip 1673 // FIXME: Need to implement a logic similar to _proxy_context_clip
1676 return EINA_FALSE; 1674 return EINA_FALSE;
1677
1678 //if (mask == proxy_render_data->src_obj->cur->clipper) return EINA_TRUE;
1679 //return _mask_apply_inside_proxy(proxy_render_data, mask->cur->clipper);
1680} 1675}
1681 1676
1682static void 1677static void
@@ -2097,9 +2092,6 @@ evas_render_mapped(Evas_Public_Data *evas, Evas_Object *eo_obj,
2097 2092
2098 // FIXME: needs to cache these maps and 2093 // FIXME: needs to cache these maps and
2099 // keep them only rendering updates 2094 // keep them only rendering updates
2100 // ENFN->image_free
2101 // (ENDT, obj->map->surface);
2102 // obj->map->surface = NULL;
2103 } 2095 }
2104 else // not "has map" 2096 else // not "has map"
2105 { 2097 {
@@ -3390,9 +3382,6 @@ evas_render_updates_internal(Evas *eo_e,
3390 } 3382 }
3391 eina_evlog("-render_phase6", eo_e, 0.0, NULL); 3383 eina_evlog("-render_phase6", eo_e, 0.0, NULL);
3392 3384
3393 /* save this list */
3394 /* obscuring_objects_orig = obscuring_objects; */
3395 /* obscuring_objects = NULL; */
3396 /* phase 7. go thru each update rect and render objects in it*/ 3385 /* phase 7. go thru each update rect and render objects in it*/
3397 eina_evlog("+render_phase7", eo_e, 0.0, NULL); 3386 eina_evlog("+render_phase7", eo_e, 0.0, NULL);
3398 if (do_draw) 3387 if (do_draw)
@@ -3567,13 +3556,6 @@ evas_render_updates_internal(Evas *eo_e,
3567 obj->restack = EINA_FALSE; 3556 obj->restack = EINA_FALSE;
3568 evas_object_change_reset(obj); 3557 evas_object_change_reset(obj);
3569 } 3558 }
3570 /* moved to other pre-process phase 1
3571 if (obj->delete_me == 2)
3572 {
3573 delete_objects = eina_list_append(delete_objects, obj);
3574 }
3575 else if (obj->delete_me != 0) obj->delete_me++;
3576 */
3577 } 3559 }
3578 3560
3579 for (i = 0; i < e->snapshot_objects.count; i++) 3561 for (i = 0; i < e->snapshot_objects.count; i++)
@@ -3648,15 +3630,6 @@ evas_render_updates_internal(Evas *eo_e,
3648 OBJS_ARRAY_CLEAN(&e->snapshot_objects); 3630 OBJS_ARRAY_CLEAN(&e->snapshot_objects);
3649 eina_array_foreach(&e->clip_changes, _evas_clip_changes_free, NULL); 3631 eina_array_foreach(&e->clip_changes, _evas_clip_changes_free, NULL);
3650 eina_array_clean(&e->clip_changes); 3632 eina_array_clean(&e->clip_changes);
3651/* we should flush here and have a mempool system for this
3652 eina_inarray_flush(&e->active_objects);
3653 eina_array_flush(&e->render_objects);
3654 eina_array_flush(&e->restack_objects);
3655 eina_array_flush(&e->delete_objects);
3656 eina_array_flush(&e->obscuring_objects);
3657 eina_array_flush(&e->temporary_objects);
3658 eina_array_flush(&e->clip_changes);
3659 */
3660 e->invalidate = EINA_TRUE; 3633 e->invalidate = EINA_TRUE;
3661 } 3634 }
3662 3635