evas map: disable anti_aliasing.

We need a proper interface to toggle high-quality mapping,
until that, we disable the anti_aliasing feature.
Since adjecent polygons(such as textpath) shouldn't get this aa feature.
This commit is contained in:
Hermet Park 2019-04-08 15:02:47 +09:00
parent d5551bdda3
commit dc1e1a652c
2 changed files with 3 additions and 6 deletions

View File

@ -866,11 +866,7 @@ evas_common_map_rgba(RGBA_Image *src, RGBA_Image *dst,
if (dc->anti_alias && smooth) if (dc->anti_alias && smooth)
{ {
//FIXME: we cannot apply anti_aliasing per polygons.
Eina_Bool aa = dc->anti_alias;
if (npoints > 4) dc->anti_alias = EINA_FALSE;
cb = evas_common_map_rgba_internal_high; cb = evas_common_map_rgba_internal_high;
if (npoints > 4) dc->anti_alias = aa;
} }
else else
{ {
@ -899,8 +895,6 @@ evas_common_map_rgba_draw(RGBA_Image *src, RGBA_Image *dst, int clip_x, int clip
//The best quaility requsted. //The best quaility requsted.
if (anti_alias && smooth) if (anti_alias && smooth)
{ {
//FIXME: we cannot apply anti_aliasing per polygons.
if (npoints > 4) anti_alias = EINA_FALSE;
_evas_common_map_rgba_internal_high(src, dst, _evas_common_map_rgba_internal_high(src, dst,
clip_x, clip_y, clip_w, clip_h, clip_x, clip_y, clip_w, clip_h,
mul_col, render_op, mul_col, render_op,

View File

@ -764,6 +764,9 @@ _evas_common_map_rgba_internal_high(RGBA_Image *src, RGBA_Image *dst,
Eina_Bool dst_alpha = dst->cache_entry.flags.alpha; Eina_Bool dst_alpha = dst->cache_entry.flags.alpha;
Eina_Bool col_blend = EINA_FALSE; //Necessary blending vertex color? Eina_Bool col_blend = EINA_FALSE; //Necessary blending vertex color?
//FIXME: we cannot apply anti_aliasing per polygons.
anti_alias = EINA_FALSE;
/* Prepare points data. /* Prepare points data.
Convert to float, Convert to float,
shift XY coordinates to match the sub-pixeling technique. shift XY coordinates to match the sub-pixeling technique.