summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-08-25 10:51:36 -0700
committerCedric BAIL <cedric@osg.samsung.com>2017-08-25 10:51:36 -0700
commitaebeed445485a049d14c6a392b4acc777e8e8c02 (patch)
treee7dddf32522dec9ca7b517958c9febe6cba9d430
parent3da75d74e3ca3ead9ac2fbcf80ee69b272db47e4 (diff)
evas: remove dead code that won't be easy to bring back to life.
-rw-r--r--src/lib/evas/canvas/evas_object_image.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c
index b3bd955820..2fb8d656a0 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -125,44 +125,6 @@ evas_object_image_render_prepare(Evas_Object *eo_obj EINA_UNUSED, Evas_Object_Pr
125 if (o->engine_data) ENFN->image_prepare(ENC, o->engine_data); 125 if (o->engine_data) ENFN->image_prepare(ENC, o->engine_data);
126 } 126 }
127#endif 127#endif
128#if 0
129 // is it visible? ... rgba 0 0 0 0? not mapped and in viewport?
130 if (
131 ((o->cur->border.l != 0) || (o->cur->border.r != 0) ||
132 (o->cur->border.t != 0) || (o->cur->border.b != 0)) &&
133 ((obj->cur->geometry.w < 256) && (obj->cur->geometry.h < 256))
134 )
135 {
136 void *ctx, *prep = NULL;
137
138 if (!o->engine_data_prep)
139 {
140 prep = ENFN->image_surface_noscale_new
141 (ENC, obj->cur->geometry.w, obj->cur->geometry.h,
142 o->cur->has_alpha);
143 ctx = ENFN->context_new(ENC);
144 ENFN->context_clip_set(ENC, ctx, 0, 0,
145 obj->cur->geometry.w,
146 obj->cur->geometry.h);
147 if (o->cur->has_alpha)
148 {
149 ENFN->context_render_op_set(ENC, ctx, EVAS_RENDER_COPY);
150 ENFN->context_color_set(ENC, ctx, 0, 0, 0, 0);
151 ENFN->rectangle_draw(ENC, ENDT, ctx, prep, 0, 0,
152 obj->cur->geometry.w,
153 obj->cur->geometry.h, do_async);
154 }
155 ENFN->context_render_op_set(ENC, ctx, EVAS_RENDER_BLEND);
156 evas_object_image_render(eo_obj, obj, obj->private_data, ENDT,
157 ctx, prep,
158 -obj->cur->geometry.x,
159 -obj->cur->geometry.y,
160 do_async);
161 ENFN->context_free(ENC, ctx);
162 o->engine_data_prep = prep;
163 }
164 }
165#endif
166 // XXX: if image is a proxy, PREPEND to prerender list in evas canvas 128 // XXX: if image is a proxy, PREPEND to prerender list in evas canvas
167} 129}
168 130