diff options
author | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-06-27 15:44:04 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-07-07 15:21:44 -0400 |
commit | 72cc7b0561e76b1c087a9d5b364d6058f0b0d745 (patch) | |
tree | c09a2afe97b1fda26b9fb89c4410f8e5f215c46b | |
parent | c9e1056f132c26d4e931d98e0aaadf871cb223af (diff) | |
download | efl-72cc7b0561e76b1c087a9d5b364d6058f0b0d745.tar.gz |
evas buffer engine: further deduplicate outbuf code
no functional changes
-rw-r--r-- | src/modules/evas/engines/buffer/evas_outbuf.c | 34 |
1 files changed, 9 insertions, 25 deletions
diff --git a/src/modules/evas/engines/buffer/evas_outbuf.c b/src/modules/evas/engines/buffer/evas_outbuf.c index 6ea684f380..a6c7152e68 100644 --- a/src/modules/evas/engines/buffer/evas_outbuf.c +++ b/src/modules/evas/engines/buffer/evas_outbuf.c @@ -246,33 +246,17 @@ evas_buffer_outbuf_buf_push_updated_region(Outbuf *buf, RGBA_Image *update, int dest = buf->func.new_update_region(x, y, w, h, &row_bytes); } if (!dest) break; - if (buf->use_color_key) - { - for (yy = 0; yy < h; yy++) - { - dst = dest + (yy * row_bytes); - src = update->image.data + (yy * update->cache_entry.w); - for (xx = 0; xx < w; xx++) - { - if (A_VAL(src) > thresh) - dst = _update_24bpp_888_888(dst, src, buf->depth); - else - dst = _update_24bpp_888_888(dst, &colorkey, buf->depth); - src++; - } - } - } - else + for (yy = 0; yy < h; yy++) { - for (yy = 0; yy < h; yy++) + dst = dest + (yy * row_bytes); + src = update->image.data + (yy * update->cache_entry.w); + for (xx = 0; xx < update->cache_entry.w; xx++) { - dst = dest + (yy * row_bytes); - src = update->image.data + (yy * update->cache_entry.w); - for (xx = 0; xx < w; xx++) - { - dst = _update_24bpp_888_888(dst, src, buf->depth); - src++; - } + if ((!buf->use_color_key) || (A_VAL(src) > thresh)) + dst = _update_24bpp_888_888(dst, src, buf->depth); + else + dst = _update_24bpp_888_888(dst, &colorkey, buf->depth); + src++; } } if (buf->func.free_update_region) |