evas map: disable anti_aliasing. 49/202949/1 accepted/tizen/unified/20190410.002130 submit/tizen/20190408.080554 submit/tizen/20190408.115831
authorHermet Park <hermetpark@gmail.com>
Mon, 8 Apr 2019 06:02:47 +0000 (15:02 +0900)
committerHermet Park <hermetpark@gmail.com>
Mon, 8 Apr 2019 06:05:18 +0000 (15:05 +0900)
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.

Change-Id: I8667d728f07a41539ae9c312eee763204e79c16e

src/lib/evas/common/evas_map_image.c
src/lib/evas/common/evas_map_image_internal_high.c

index 369ea05..5036841 100644 (file)
@@ -866,11 +866,7 @@ evas_common_map_rgba(RGBA_Image *src, RGBA_Image *dst,
 
    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;
-        if (npoints > 4) dc->anti_alias = aa;
      }
    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.
    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,
                                             clip_x, clip_y, clip_w, clip_h,
                                             mul_col, render_op,
index 7efe5ff..f842c74 100644 (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 col_blend = EINA_FALSE;   //Necessary blending vertex color?
 
+   //FIXME: we cannot apply anti_aliasing per polygons.
+   anti_alias = EINA_FALSE;
+
    /* Prepare points data. 
       Convert to float, 
       shift XY coordinates to match the sub-pixeling technique.