summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-05-21 20:23:16 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-21 20:27:05 +0200
commit7c78938689e4cdd9682dd52def70d8206e49aae4 (patch)
tree266116498417e516d39033ec8f1e537003c50956 /src
parent6d0233afb8bf942a0268e37a75d38fc9a9023469 (diff)
evas/scale_sample: remove unnecessary clamping to mask geometry
Summary: this is now handled entirely in the masking helper function no functional changes Depends on D8847 Reviewers: segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl_rendering Differential Revision: https://phab.enlightenment.org/D8848
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/common/evas_scale_sample.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/lib/evas/common/evas_scale_sample.c b/src/lib/evas/common/evas_scale_sample.c
index 20376fcf2e..a498b3cea0 100644
--- a/src/lib/evas/common/evas_scale_sample.c
+++ b/src/lib/evas/common/evas_scale_sample.c
@@ -351,16 +351,6 @@ evas_common_scale_rgba_sample_draw(RGBA_Image *src, RGBA_Image *dst, int dst_cli
351 } 351 }
352 else 352 else
353 func = evas_common_gfx_func_composite_pixel_mask_span_get(src->cache_entry.flags.alpha, src->cache_entry.flags.alpha_sparse, dst->cache_entry.flags.alpha, dst_clip_w, render_op); 353 func = evas_common_gfx_func_composite_pixel_mask_span_get(src->cache_entry.flags.alpha, src->cache_entry.flags.alpha_sparse, dst->cache_entry.flags.alpha, dst_clip_w, render_op);
354
355 /* clamp/map to mask geometry */
356 if (EINA_UNLIKELY(dst_clip_x < mask_x))
357 dst_clip_x = mask_x;
358 if (EINA_UNLIKELY(dst_clip_y < mask_y))
359 dst_clip_y = mask_y;
360 if (EINA_UNLIKELY(dst_clip_x + dst_clip_w > mask_x + (int)mask_ie->cache_entry.w))
361 dst_clip_w = mask_x + mask_ie->cache_entry.w - dst_clip_x;
362 if (EINA_UNLIKELY(dst_clip_y + dst_clip_h > mask_y + (int)mask_ie->cache_entry.h))
363 dst_clip_h = mask_y + mask_ie->cache_entry.h - dst_clip_y;
364 } 354 }
365 355
366 if ((dst_region_w == src_region_w) && (dst_region_h == src_region_h)) 356 if ((dst_region_w == src_region_w) && (dst_region_h == src_region_h))