summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2014-02-07 22:37:53 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-02-07 22:37:53 +0900
commit0541d1ebe690a1ac999a523141a078de02ae2b8f (patch)
tree0d71297063d6a6c794cc7db0d5f9394b7c4a7b23 /src
parentfff4661095b5d5c0700fc7e1c7fafe1cdce195f8 (diff)
evas/common - code clean up
one if-else if compare is enough. don't try compare twice.
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/common/evas_blend_main.c34
1 files changed, 10 insertions, 24 deletions
diff --git a/src/lib/evas/common/evas_blend_main.c b/src/lib/evas/common/evas_blend_main.c
index 558d59776a..6d3e0d8e29 100644
--- a/src/lib/evas/common/evas_blend_main.c
+++ b/src/lib/evas/common/evas_blend_main.c
@@ -165,12 +165,9 @@ evas_common_gfx_func_composite_color_span_get(DATA32 col, RGBA_Image *dst, int p
165 165
166 if ((col & 0xff000000) == 0xff000000) 166 if ((col & 0xff000000) == 0xff000000)
167 { 167 {
168 if (op == _EVAS_RENDER_BLEND) 168 if (op == _EVAS_RENDER_BLEND) op = _EVAS_RENDER_COPY;
169 op = _EVAS_RENDER_COPY; 169 else if (op == EVAS_RENDER_BLEND_REL) op = _EVAS_RENDER_COPY_REL;
170 if (op == EVAS_RENDER_BLEND_REL)
171 op = _EVAS_RENDER_COPY_REL;
172 } 170 }
173
174 comp = evas_gfx_compositor_get(op); 171 comp = evas_gfx_compositor_get(op);
175 if (comp) 172 if (comp)
176 func = comp->composite_color_span_get(col, dst, pixels); 173 func = comp->composite_color_span_get(col, dst, pixels);
@@ -187,12 +184,9 @@ evas_common_gfx_func_composite_pixel_color_span_get(RGBA_Image *src, DATA32 col,
187 184
188 if ((src && (!src->cache_entry.flags.alpha)) && ((col & 0xff000000) == 0xff000000)) 185 if ((src && (!src->cache_entry.flags.alpha)) && ((col & 0xff000000) == 0xff000000))
189 { 186 {
190 if (op == _EVAS_RENDER_BLEND) 187 if (op == _EVAS_RENDER_BLEND) op = _EVAS_RENDER_COPY;
191 op = _EVAS_RENDER_COPY; 188 else if (op == _EVAS_RENDER_BLEND_REL) op = _EVAS_RENDER_COPY_REL;
192 if (op == _EVAS_RENDER_BLEND_REL)
193 op = _EVAS_RENDER_COPY_REL;
194 } 189 }
195
196 comp = evas_gfx_compositor_get(op); 190 comp = evas_gfx_compositor_get(op);
197 if (comp) 191 if (comp)
198 func = comp->composite_pixel_color_span_get(src, col, dst, pixels); 192 func = comp->composite_pixel_color_span_get(src, col, dst, pixels);
@@ -237,10 +231,8 @@ evas_common_gfx_func_composite_pixel_pt_get(Image_Entry_Flags src_flags, RGBA_Im
237 231
238 if (!src_flags.alpha) 232 if (!src_flags.alpha)
239 { 233 {
240 if (op == _EVAS_RENDER_BLEND) 234 if (op == _EVAS_RENDER_BLEND) op = _EVAS_RENDER_COPY;
241 op = _EVAS_RENDER_COPY; 235 else if (op == _EVAS_RENDER_BLEND_REL) op = _EVAS_RENDER_COPY_REL;
242 if (op == _EVAS_RENDER_BLEND_REL)
243 op = _EVAS_RENDER_COPY_REL;
244 } 236 }
245 comp = evas_gfx_compositor_get(op); 237 comp = evas_gfx_compositor_get(op);
246 if (comp) 238 if (comp)
@@ -258,12 +250,9 @@ evas_common_gfx_func_composite_color_pt_get(DATA32 col, RGBA_Image *dst, int op)
258 250
259 if ((col & 0xff000000) == 0xff000000) 251 if ((col & 0xff000000) == 0xff000000)
260 { 252 {
261 if (op == _EVAS_RENDER_BLEND) 253 if (op == _EVAS_RENDER_BLEND) op = _EVAS_RENDER_COPY;
262 op = _EVAS_RENDER_COPY; 254 else if (op == EVAS_RENDER_BLEND_REL) op = _EVAS_RENDER_COPY_REL;
263 if (op == EVAS_RENDER_BLEND_REL)
264 op = _EVAS_RENDER_COPY_REL;
265 } 255 }
266
267 comp = evas_gfx_compositor_get(op); 256 comp = evas_gfx_compositor_get(op);
268 if (comp) 257 if (comp)
269 func = comp->composite_color_pt_get(col, dst); 258 func = comp->composite_color_pt_get(col, dst);
@@ -280,12 +269,9 @@ evas_common_gfx_func_composite_pixel_color_pt_get(Image_Entry_Flags src_flags, D
280 269
281 if ((!src_flags.alpha) && ((col & 0xff000000) == 0xff000000)) 270 if ((!src_flags.alpha) && ((col & 0xff000000) == 0xff000000))
282 { 271 {
283 if (op == _EVAS_RENDER_BLEND) 272 if (op == _EVAS_RENDER_BLEND) op = _EVAS_RENDER_COPY;
284 op = _EVAS_RENDER_COPY; 273 else if (op == _EVAS_RENDER_BLEND_REL) op = _EVAS_RENDER_COPY_REL;
285 if (op == _EVAS_RENDER_BLEND_REL)
286 op = _EVAS_RENDER_COPY_REL;
287 } 274 }
288
289 comp = evas_gfx_compositor_get(op); 275 comp = evas_gfx_compositor_get(op);
290 if (comp) 276 if (comp)
291 func = comp->composite_pixel_color_pt_get(src_flags, col, dst); 277 func = comp->composite_pixel_color_pt_get(src_flags, col, dst);