From: raster Date: Thu, 22 Oct 2009 16:06:32 +0000 (+0000) Subject: a little cleaner, but not faster X-Git-Tag: accepted/2.0/20130306.225542~242^2~2244 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f1b14af37222ccb454125ead2f799d0962a8491b;p=profile%2Fivi%2Fevas.git a little cleaner, but not faster git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@43204 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/engines/common/evas_map_image.c b/src/lib/engines/common/evas_map_image.c index bd76c2d..16e597c 100644 --- a/src/lib/engines/common/evas_map_image.c +++ b/src/lib/engines/common/evas_map_image.c @@ -412,13 +412,7 @@ evas_common_map4_rgba_internal(RGBA_Image *src, RGBA_Image *dst, } } } - if (dc->mul.use) - func = evas_common_gfx_func_composite_pixel_color_span_get(src, dc->mul.col, dst, cw, dc->render_op); - else - func = evas_common_gfx_func_composite_pixel_span_get(src, dst, cw, dc->render_op); - - buf = alloca(dst->cache_entry.w * sizeof(DATA32)); - // walk spans and fill + if ((!src->cache_entry.flags.alpha) && (!dst->cache_entry.flags.alpha) && (!dc->mul.use)) @@ -462,6 +456,13 @@ evas_common_map4_rgba_internal(RGBA_Image *src, RGBA_Image *dst, } else { + buf = alloca(cw * sizeof(DATA32)); + + if (dc->mul.use) + func = evas_common_gfx_func_composite_pixel_color_span_get(src, dc->mul.col, dst, cw, dc->render_op); + else + func = evas_common_gfx_func_composite_pixel_span_get(src, dst, cw, dc->render_op); + for (y = ystart; y <= yend; y++) { int x, w, ww, dx, dy, sx, sy;