From: Hermet Park Date: Thu, 19 Sep 2019 04:24:08 +0000 (+0900) Subject: evas map: disable the anti_aliasing code which can't be reached. X-Git-Tag: accepted/tizen/unified/20190923.011149~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F96%2F214196%2F1;p=platform%2Fupstream%2Fefl.git evas map: disable the anti_aliasing code which can't be reached. This anti-aliasing is a little buggy, should be improved. But just leaving to fix later when it's necessary. Change-Id: Ie984795b00514e012f1f1a99bfef41a41e1df5a2 --- diff --git a/src/lib/evas/common/evas_map_image_internal_high.c b/src/lib/evas/common/evas_map_image_internal_high.c index dfbbfbc..3d23782 100644 --- a/src/lib/evas/common/evas_map_image_internal_high.c +++ b/src/lib/evas/common/evas_map_image_internal_high.c @@ -33,6 +33,8 @@ static float xa, xb, ua, va, ca[4]; b = tmp /************************** ANTI-ALIASING CODE ********************************/ +#ifdef MAP_HIGH_ANTI_ALIASING + static void _map_irregular_coverage_calc(AALine* spans, int eidx, int y, int diagonal, int edge_dist, Eina_Bool reverse) @@ -332,6 +334,7 @@ _map_aa_apply(AASpans *aa_spans, DATA32 *dst, int dw) free(aa_spans->lines); free(aa_spans); } +#endif /************************** TEXTURE MAPPING CODE ******************************/ static void @@ -822,6 +825,8 @@ _evas_common_map_rgba_internal_high(RGBA_Image *src, RGBA_Image *dst, //Setup Anti-Aliasing? AASpans *aa_spans = NULL; + +#ifdef MAP_HIGH_ANTI_ALIASING if (anti_alias) { //Adjust AA Y range @@ -837,6 +842,7 @@ _evas_common_map_rgba_internal_high(RGBA_Image *src, RGBA_Image *dst, aa_spans = _map_aa_ready(dst->cache_entry.w, dst->cache_entry.h, ystart, yend); } +#endif /* 1 polygon is consisted of 2 triangles, 4 polygons constructs 1 mesh. @@ -900,7 +906,8 @@ _evas_common_map_rgba_internal_high(RGBA_Image *src, RGBA_Image *dst, &poly, mul_col, aa_spans, smooth, col_blend); } - +#ifdef MAP_HIGH_ANTI_ALIASING if (anti_alias) _map_aa_apply(aa_spans, dst->image.data, dst->cache_entry.w); +#endif }