This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository efl.

View the commit online.

commit 56b1a889f28ac0410ead396d0d5276e5b0cbabb8
Author: Cedric BAIL <[email protected]>
AuthorDate: Sat Nov 28 22:05:17 2026 -0600

    evas/map: shade mapped faces seen at an angle with perspective
    
    Textures of faces at an angle are divided by depth, but vertex colors,
    which evas_map_util_3d_lighting() sets, were still spread evenly on
    screen, and so did not stay with the surface they light. On a face whose
    far edge is twice as far as its near one, a shade from black to white
    was 42 levels off in places. OpenGL interpolates both alike.
    
    Colors now follow the texture along edges, along spans and in the
    anti-aliased triangles. Flat maps give the same pixels as before.
    
    expedite, buffer engine, release build, Ryzen 7 6800U, frames per
    second, before -> after, median of 3 runs (spread at most 4%):
    
                               AVX2           SSE           MMX
      50 Image Map 3D 1    2098 -> 1996   1387 -> 1293    880 -> 853
      51 Image Map 3D 2    1165 -> 1157    755 ->  745    685 -> 673
      54 Image Map 3D 5    2541 -> 2416   1385 -> 1311    781 -> 759
      56 Image Map 3D Flow  732 ->  714    434 ->  415    347 -> 340
    
    The flat lit test 44 is unchanged. An angled anti-aliased face on an
    800x600 canvas goes from 3.91 to 4.00 ms per frame.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 src/lib/evas/common/evas_map_image.c               | 55 +++++++++++++--
 src/lib/evas/common/evas_map_image_core.c          |  6 ++
 src/lib/evas/common/evas_map_image_internal_high.c | 30 ++++++--
 src/lib/evas/common/evas_map_image_span.h          |  9 +--
 src/lib/evas/common/evas_map_image_span_avx2.c     | 13 +++-
 src/lib/evas/common/evas_map_image_span_x86.h      | 17 +++--
 src/tests/evas/evas_test_map.c                     | 82 ++++++++++++++++++++++
 7 files changed, 188 insertions(+), 24 deletions(-)

diff --git a/src/lib/evas/common/evas_map_image.c b/src/lib/evas/common/evas_map_image.c
index ec8affb277..0522a67405 100644
--- a/src/lib/evas/common/evas_map_image.c
+++ b/src/lib/evas/common/evas_map_image.c
@@ -82,12 +82,28 @@ _interp_col(int x1, int x2, int p, DATA32 col1, DATA32 col2)
    return INTERP_256(p, col2, col1);
 }
 
+/* Where a color between those of the ends is taken, f of the way across the
+ * screen: further along the face than f where the far end is nearer. */
+static inline float
+_persp_color_place(float f, float q_from, float q_to)
+{
+   float q = q_from + (f * (q_to - q_from));
+
+   return (q > 0) ? ((f * q_to) / q) : f;
+}
+
 static inline void
-_interp_persp(Span *s, int end, int x)
+_interp_persp(Span *s, int end, int x, Eina_Bool interp_col)
 {
    int len = s->x[1] - s->x[0];
    float f = (float)(x - s->x[0]) / (len ? len : 1);
 
+   if (interp_col)
+     {
+        int place = 256 * _persp_color_place(f, s->q[0], s->q[1]);
+
+        s->col[end] = INTERP_256(place, s->col[1], s->col[0]);
+     }
    s->uq[end] = s->uq[0] + (f * (s->uq[1] - s->uq[0]));
    s->vq[end] = s->vq[0] + (f * (s->vq[1] - s->vq[0]));
    s->q[end] = s->q[0] + (f * (s->q[1] - s->q[0]));
@@ -99,20 +115,20 @@ _interpolated_clip_span(Span *s, int c1, int c2, Eina_Bool interp_col,
 {
    if (s->x[0] < c1)
      {
-        if (persp) _interp_persp(s, 0, c1);
+        if (persp) _interp_persp(s, 0, c1, interp_col);
         s->u[0] = _interp(s->x[0], s->x[1], c1, s->u[0], s->u[1]);
         s->v[0] = _interp(s->x[0], s->x[1], c1, s->v[0], s->v[1]);
-        if (interp_col)
+        if (interp_col && !persp)
           s->col[0] = _interp_col(s->x[0], s->x[1], c1, s->col[0], s->col[1]);
         s->x[0] = c1;
         s->o1 = c1 << FP;
      }
    if (s->x[1] > c2)
      {
-        if (persp) _interp_persp(s, 1, c2);
+        if (persp) _interp_persp(s, 1, c2, interp_col);
         s->u[1] = _interp(s->x[0], s->x[1], c2, s->u[0], s->u[1]);
         s->v[1] = _interp(s->x[0], s->x[1], c2, s->v[0], s->v[1]);
-        if (interp_col)
+        if (interp_col && !persp)
           s->col[1] = _interp_col(s->x[0], s->x[1], c2, s->col[0], s->col[1]);
         s->x[1] = c2;
         s->o2 = c2 << FP;
@@ -155,7 +171,9 @@ typedef struct _Persp_Walk
 {
    float uq, vq, q, duq, dvq, dq; /* at xa, and per pixel */
    float xa, len;
-   int x, end, step, shift;
+   /* 16.16 place between the colors of the ends, over depth, per pixel */
+   float cq;
+   int x0, x, end, step, shift;
    FPc u, v;                      /* exact source position at x */
    FPc u_end, v_end;
 } Persp_Walk;
@@ -192,7 +210,7 @@ _map_persp_start(Persp_Walk *pw, const Span *span, int smooth, FPc u_end, FPc v_
    pw->duq = (span->uq[1] - span->uq[0]) / len;
    pw->dvq = (span->vq[1] - span->vq[0]) / len;
    pw->dq = (span->q[1] - span->q[0]) / len;
-   pw->x = span->x[0];
+   pw->x0 = pw->x = span->x[0];
    pw->end = span->x[1];
    pw->u_end = u_end;
    pw->v_end = v_end;
@@ -209,9 +227,28 @@ _map_persp_start(Persp_Walk *pw, const Span *span, int smooth, FPc u_end, FPc v_
         pw->shift--;
      }
 
+   pw->cq = ((pw->q + ((pw->end - pw->xa) * pw->dq)) * (255 << 16)) / (pw->end - pw->x0);
+
    _map_persp_at(pw, pw->x, &pw->u, &pw->v);
 }
 
+static inline FPc
+_map_persp_color_at(const Persp_Walk *pw, int x)
+{
+   float q = pw->q + ((x - pw->xa) * pw->dq);
+   float place = ((x - pw->x0) * pw->cq) / ((q > 1e-6f) ? q : 1e-6f);
+
+   return (place <= 0) ? 0 : ((place >= (255 << 16)) ? (255 << 16) : (FPc)place);
+}
+
+/* The color place of the n pixel piece just taken, and its step */
+static inline void
+_map_persp_color(const Persp_Walk *pw, int n, FPc *cv, FPc *cd)
+{
+   *cv = _map_persp_color_at(pw, pw->x - n);
+   *cd = (_map_persp_color_at(pw, pw->x) - *cv) / n;
+}
+
 /* d / n rounded towards zero, without dividing for a whole piece */
 static inline FPc
 _map_persp_step(const Persp_Walk *pw, FPc d, int n)
@@ -232,6 +269,8 @@ _map_persp_run(const Persp_Walk *pw, Evas_Map_Span_Run *run)
    run->duq = pw->duq * FPI1;
    run->dvq = pw->dvq * FPI1;
    run->dq = pw->dq;
+   run->cq = (pw->x - pw->x0) * pw->cq;
+   run->dcq = pw->cq;
 }
 
 /* n pixels have been drawn */
@@ -416,6 +455,8 @@ _calc_spans_fill(RGBA_Map_Point *p, Line *spans, int ystart, int yend, int cx, i
                   edge_uq[i] = uq1 + (f * ((p[e2].u * q[e2]) - uq1));
                   edge_vq[i] = vq1 + (f * ((p[e2].v * q[e2]) - vq1));
                   edge_q[i] = q[e1] + (f * (q[e2] - q[e1]));
+                t256 = 256 * _persp_color_place(f, q[e1], q[e2]);
+                col[i] = INTERP_256(t256, p[e2].col, p[e1].col);
              }
              uv[i][0] = u;
              uv[i][1] = v;
diff --git a/src/lib/evas/common/evas_map_image_core.c b/src/lib/evas/common/evas_map_image_core.c
index a60df32755..83f508c9b6 100644
--- a/src/lib/evas/common/evas_map_image_core.c
+++ b/src/lib/evas/common/evas_map_image_core.c
@@ -118,6 +118,9 @@
                     {
                        if (walk.x >= walk.end) break;
                        ww = _map_persp_next(&walk, &u, &v, &ud, &vd);
+#ifdef COLMUL
+                       _map_persp_color(&walk, ww, &cv, &cd);
+#endif //COLMUL
                     }
 #ifdef COLMUL
                   if (c1 == c2)
@@ -281,6 +284,9 @@
                     {
                        if (walk.x >= walk.end) break;
                        ww = _map_persp_next(&walk, &u, &v, &ud, &vd);
+#ifdef COLMUL
+                       _map_persp_color(&walk, ww, &cv, &cd);
+#endif //COLMUL
                     }
 #ifdef COLMUL
                   if (c1 == c2)
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 9b36675f75..4b6f303951 100644
--- a/src/lib/evas/common/evas_map_image_internal_high.c
+++ b/src/lib/evas/common/evas_map_image_internal_high.c
@@ -361,7 +361,7 @@ _map_triangle_scanlines(RGBA_Image *src, RGBA_Image *dst,
    int sh = src->cache_entry.h;
    int dw = dst->cache_entry.w;
    int x1, x2, x, y, uu, vv, ar, ab, iru, irv, px, ay;
-   float dx, u, v, iptr, q = 1, su, sv;
+   float dx, u, v, iptr, q = 1, z = 1, su, sv;
    float _dqdx = dqdx, _dqdya = dqdya, _qa = qa;
    float _dcdx[4], _dcdya[4], _ca[4];
    float c[4] = {0, 0, 0, 0};
@@ -428,8 +428,7 @@ _map_triangle_scanlines(RGBA_Image *src, RGBA_Image *dst,
              sv = v;
              if (persp)
                {
-                  float z = (q > 1e-6f) ? (1 / q) : 1e6f;
-
+                  z = (q > 1e-6f) ? (1 / q) : 1e6f;
                   su = (u > 0) ? (u * z) : 0;
                   sv = (v > 0) ? (v * z) : 0;
                   q += _dqdx;
@@ -481,7 +480,22 @@ _map_triangle_scanlines(RGBA_Image *src, RGBA_Image *dst,
              //Vertex Color Blending
              else
                {
-                  DATA32 tmp = (((int) c[0]) << 24) | (((int) c[1]) << 16) | (((int) c[2]) << 8) | ((int) c[3]);
+                  DATA32 tmp;
+
+                  if (persp)
+                    {
+                       int channel[4];
+
+                       for (int i = 0; i < 4; i++)
+                         {
+                            float at = c[i] * z;
+
+                            channel[i] = (at <= 0) ? 0 : ((at >= 255) ? 255 : (int)(at + 0.5f));
+                         }
+                       tmp = ((DATA32)channel[0] << 24) | (channel[1] << 16) | (channel[2] << 8) | channel[3];
+                    }
+                  else
+                    tmp = (((int) c[0]) << 24) | (((int) c[1]) << 16) | (((int) c[2]) << 8) | ((int) c[3]);
                   *(buf++) = MUL4_SYM(tmp, px);
                   c[0] += _dcdx[0];
                   c[1] += _dcdx[1];
@@ -579,7 +593,8 @@ _map_triangle_draw(RGBA_Image *src, RGBA_Image *dst,
    float dxdy[3] = {0, 0, 0};
    float dudy, dvdy, dqdy, dcdy[4];
    float tmp;
-   int mc[3][4];     //3 vertex, 4 color channels.
+   /* 3 vertex, 4 color channels, over depth like u and v at an angle */
+   float mc[3][4];
    DATA32 tmpc;
    Eina_Bool side;
    Eina_Bool upper = EINA_FALSE;
@@ -646,6 +661,11 @@ _map_triangle_draw(RGBA_Image *src, RGBA_Image *dst,
              mc[i][1] = (c[i] & 0x00ff0000) >> 16;
              mc[i][2] = (c[i] & 0x0000ff00) >> 8;
              mc[i][3] = (c[i] & 0x000000ff);
+             if (persp)
+               {
+                  for (int j = 0; j < 4; ++j)
+                    mc[i][j] *= q[i];
+               }
           }
         for (int i = 0; i < 4; ++i)
           {
diff --git a/src/lib/evas/common/evas_map_image_span.h b/src/lib/evas/common/evas_map_image_span.h
index 76a4267881..8d884da4b3 100644
--- a/src/lib/evas/common/evas_map_image_span.h
+++ b/src/lib/evas/common/evas_map_image_span.h
@@ -16,9 +16,10 @@ typedef enum
 /* One horizontal span. u, v and their bounds are 16.16 source coordinates,
  * cv is the 16.16 position between the colors c1 and c2.
  *
- * A face seen at an angle has no constant step through the source. uq, vq
- * and q, the 16.16 coordinates over depth and 1 over depth, do: they are
- * given for the first pixel, with their step to the next one. */
+ * A face seen at an angle has no constant step through the source or between
+ * the colors. uq, vq, cq and q, the 16.16 positions over depth and 1 over
+ * depth, do: they are given for the first pixel, with their step to the
+ * next one, and used in place of u, v and cv. */
 typedef struct _Evas_Map_Span_Run
 {
    const DATA32 *texels;
@@ -26,7 +27,7 @@ typedef struct _Evas_Map_Span_Run
    int u_end, v_end;
    int u, v, ud, vd;
    int cv, cd;
-   float uq, vq, q, duq, dvq, dq;
+   float uq, vq, cq, q, duq, dvq, dcq, dq;
    DATA32 c1, c2;
 } Evas_Map_Span_Run;
 
diff --git a/src/lib/evas/common/evas_map_image_span_avx2.c b/src/lib/evas/common/evas_map_image_span_avx2.c
index 976782de6d..064c4a77d5 100644
--- a/src/lib/evas/common/evas_map_image_span_avx2.c
+++ b/src/lib/evas/common/evas_map_image_span_avx2.c
@@ -53,7 +53,8 @@ _map_weights8(__m256i weight, __m256i *lo, __m256i *hi)
 
 /* The same arithmetic as _map_persp4, so both tiers draw the same pixels */
 static EFL_ALWAYS_INLINE void
-_map_persp8(const Evas_Map_Span_Run *run, __m256 at, __m256i *u, __m256i *v)
+_map_persp8(const Evas_Map_Span_Run *run, __m256 at, __m256i *u, __m256i *v,
+            __m256i *cv)
 {
    __m256 q = _mm256_add_ps(_mm256_set1_ps(run->q), _mm256_mul_ps(at, _mm256_set1_ps(run->dq)));
    __m256 iq = _mm256_rcp_ps(q);
@@ -63,6 +64,8 @@ _map_persp8(const Evas_Map_Span_Run *run, __m256 at, __m256i *u, __m256i *v)
                                                         _mm256_mul_ps(at, _mm256_set1_ps(run->duq))), iq));
    *v = _mm256_cvttps_epi32(_mm256_mul_ps(_mm256_add_ps(_mm256_set1_ps(run->vq),
                                                         _mm256_mul_ps(at, _mm256_set1_ps(run->dvq))), iq));
+   *cv = _mm256_cvttps_epi32(_mm256_mul_ps(_mm256_add_ps(_mm256_set1_ps(run->cq),
+                                                         _mm256_mul_ps(at, _mm256_set1_ps(run->dcq))), iq));
 }
 
 static EFL_ALWAYS_INLINE int
@@ -79,6 +82,7 @@ _map_span8(DATA32 *d, int w, const Evas_Map_Span_Run *run,
    const __m256i v_max = _mm256_set1_epi32(run->v_end - 1);
    const __m256i texel = _mm256_set1_epi32(1 << 16);
    const __m256i byte = _mm256_set1_epi32(0xff);
+   const __m256i cv_max = _mm256_set1_epi32(255 << 16);
    __m256i u, v, cv = zero, c1 = zero, c2 = zero;
    int done;
 
@@ -107,7 +111,10 @@ _map_span8(DATA32 *d, int w, const Evas_Map_Span_Run *run,
 
         if (persp)
           {
-             _map_persp8(run, at, &u, &v);
+             __m256i place;
+
+             _map_persp8(run, at, &u, &v, &place);
+             if (shade == EVAS_MAP_SPAN_GRADIENT) cv = _map_clamp8(place, cv_max);
              u = _map_clamp8(u, u_max);
              v = _map_clamp8(v, v_max);
              at = _mm256_add_ps(at, _mm256_set1_ps(8));
@@ -166,7 +173,7 @@ _map_span8(DATA32 *d, int w, const Evas_Map_Span_Run *run,
              _map_weights8(_mm256_srai_epi32(cv, 16), &rc_lo, &rc_hi);
              lo = _map_mul8(_map_interp8(rc_lo, c2, c1), lo);
              hi = _map_mul8(_map_interp8(rc_hi, c2, c1), hi);
-             cv = _mm256_add_epi32(cv, dc);
+             if (!persp) cv = _mm256_add_epi32(cv, dc);
           }
 
         _mm256_storeu_si256((__m256i *)(d + done), _mm256_packus_epi16(lo, hi));
diff --git a/src/lib/evas/common/evas_map_image_span_x86.h b/src/lib/evas/common/evas_map_image_span_x86.h
index 952f26b034..4d1aeeaa41 100644
--- a/src/lib/evas/common/evas_map_image_span_x86.h
+++ b/src/lib/evas/common/evas_map_image_span_x86.h
@@ -64,10 +64,11 @@ _map_weights4(__m128i weight, __m128i *lo, __m128i *hi)
    *hi = _mm_unpackhi_epi32(weight, weight);
 }
 
-/* Source coordinates of four perspective pixels: num / q for each, where
- * the approximate reciprocal is refined once. Callers clamp the result. */
+/* Source and color positions of four perspective pixels: num / q for each,
+ * where the approximate reciprocal is refined once. Callers clamp them. */
 static EFL_ALWAYS_INLINE void
-_map_persp4(const Evas_Map_Span_Run *run, __m128 at, __m128i *u, __m128i *v)
+_map_persp4(const Evas_Map_Span_Run *run, __m128 at, __m128i *u, __m128i *v,
+            __m128i *cv)
 {
    __m128 q = _mm_add_ps(_mm_set1_ps(run->q), _mm_mul_ps(at, _mm_set1_ps(run->dq)));
    __m128 iq = _mm_rcp_ps(q);
@@ -77,6 +78,8 @@ _map_persp4(const Evas_Map_Span_Run *run, __m128 at, __m128i *u, __m128i *v)
                                                _mm_mul_ps(at, _mm_set1_ps(run->duq))), iq));
    *v = _mm_cvttps_epi32(_mm_mul_ps(_mm_add_ps(_mm_set1_ps(run->vq),
                                                _mm_mul_ps(at, _mm_set1_ps(run->dvq))), iq));
+   *cv = _mm_cvttps_epi32(_mm_mul_ps(_mm_add_ps(_mm_set1_ps(run->cq),
+                                                _mm_mul_ps(at, _mm_set1_ps(run->dcq))), iq));
 }
 
 /* Draws the pixels of the run from first on; d points at the first of them.
@@ -95,6 +98,7 @@ _map_span4(DATA32 *d, int first, int w, const Evas_Map_Span_Run *run,
    const __m128i v_max = _mm_set1_epi32(run->v_end - 1);
    const __m128i texel = _mm_set1_epi32(1 << 16);
    const __m128i byte = _mm_set1_epi32(0xff);
+   const __m128i cv_max = _mm_set1_epi32(255 << 16);
    __m128i u, v, cv = zero, c1 = zero, c2 = zero;
    int done;
 
@@ -122,7 +126,10 @@ _map_span4(DATA32 *d, int first, int w, const Evas_Map_Span_Run *run,
 
         if (persp)
           {
-             _map_persp4(run, at, &u, &v);
+             __m128i place;
+
+             _map_persp4(run, at, &u, &v, &place);
+             if (shade == EVAS_MAP_SPAN_GRADIENT) cv = _map_clamp4(place, cv_max);
              u = _map_clamp4(u, u_max);
              v = _map_clamp4(v, v_max);
              at = _mm_add_ps(at, _mm_set1_ps(4));
@@ -181,7 +188,7 @@ _map_span4(DATA32 *d, int first, int w, const Evas_Map_Span_Run *run,
              _map_weights4(_mm_srai_epi32(cv, 16), &rc_lo, &rc_hi);
              lo = _map_mul4(_map_interp4(rc_lo, c2, c1), lo);
              hi = _map_mul4(_map_interp4(rc_hi, c2, c1), hi);
-             cv = _mm_add_epi32(cv, dc);
+             if (!persp) cv = _mm_add_epi32(cv, dc);
           }
 
         _mm_storeu_si128((__m128i *)(d + done), _mm_packus_epi16(lo, hi));
diff --git a/src/tests/evas/evas_test_map.c b/src/tests/evas/evas_test_map.c
index 3e8b37faec..9c6c0c10b0 100644
--- a/src/tests/evas/evas_test_map.c
+++ b/src/tests/evas/evas_test_map.c
@@ -308,6 +308,86 @@ EFL_START_TEST(evas_object_map_perspective_anti_alias)
 }
 EFL_END_TEST
 
+/* Vertex colors follow the face like the texture does: shade a white image
+ * from black on the near edge to white on the far one, and every pixel shows
+ * where along the face its color was taken. */
+static void
+_persp_shade_check(const Persp_Face *face, Eina_Bool smooth, Eina_Bool anti_alias)
+{
+   Ecore_Evas *ee;
+   Evas_Object *img;
+   Evas_Map *map;
+   unsigned int *source;
+   const unsigned int *pixels;
+   int i, x, y, checked = 0, wrong = 0, worst = 0;
+
+   ee = ecore_evas_buffer_new(500, 300);
+   ecore_evas_show(ee);
+   img = evas_object_image_filled_add(ecore_evas_get(ee));
+   evas_object_image_size_set(img, PERSP_TEX, PERSP_TEX);
+   source = evas_object_image_data_get(img, EINA_TRUE);
+   memset(source, 0xff, PERSP_TEX * PERSP_TEX * sizeof(*source));
+   evas_object_image_data_set(img, source);
+   evas_object_image_data_update_add(img, 0, 0, PERSP_TEX, PERSP_TEX);
+   evas_object_resize(img, PERSP_TEX, PERSP_TEX);
+   evas_object_show(img);
+
+   map = evas_map_new(4);
+   _persp_face_set(map, 0, face);
+   for (i = 0; i < 4; i++)
+     {
+        int c = ((i == 1) || (i == 2)) ? 255 : 0;
+
+        evas_map_point_color_set(map, i, c, c, c, 255);
+     }
+   evas_map_util_3d_perspective(map, 0, 150, 0, PERSP_FOC);
+   evas_map_smooth_set(map, smooth);
+   evas_object_anti_alias_set(img, anti_alias);
+   evas_object_map_set(img, map);
+   evas_object_map_enable_set(img, EINA_TRUE);
+   ecore_evas_manual_render(ee);
+   pixels = ecore_evas_buffer_pixels_get(ee);
+
+   for (x = face->left + 3; x < face->right - 3; x++)
+     {
+        const double first = _persp_column(face, x);
+        const double last = _persp_column(face, x + 1);
+        const double slack = 4 + ((last - first) / 4);
+
+        for (y = face->far_top + 3; y < face->far_bottom - 3; y++)
+          {
+             const int shade = (pixels[(y * 500) + x] >> 16) & 0xff;
+             const int off = abs(shade - (int)((first + last) / 2));
+
+             checked++;
+             if ((shade < (first - slack)) || (shade > (last + slack))) wrong++;
+             if (off > worst) worst = off;
+          }
+     }
+   ck_assert_int_gt(checked, 2500);
+   ck_assert_msg(!wrong, "%s%s: %d of %d pixels show the wrong shade, worst %d off",
+                 smooth ? "smooth" : "nearest", anti_alias ? " anti-aliased" : "",
+                 wrong, checked, worst);
+
+   evas_map_free(map);
+   ecore_evas_free(ee);
+}
+
+EFL_START_TEST(evas_object_map_perspective_colors)
+{
+   _persp_shade_check(&_persp_slight, EINA_FALSE, EINA_FALSE);
+   _persp_shade_check(&_persp_slight, EINA_TRUE, EINA_FALSE);
+   _persp_shade_check(&_persp_steep, EINA_FALSE, EINA_FALSE);
+}
+EFL_END_TEST
+
+EFL_START_TEST(evas_object_map_perspective_colors_anti_alias)
+{
+   _persp_shade_check(&_persp_slight, EINA_TRUE, EINA_TRUE);
+   _persp_shade_check(&_persp_steep, EINA_TRUE, EINA_TRUE);
+}
+EFL_END_TEST
+
 void evas_test_map(TCase *tc)
 {
    tcase_add_test(tc, evas_object_map_api);
@@ -316,4 +396,6 @@ void evas_test_map(TCase *tc)
    tcase_add_test(tc, evas_object_map_perspective_steep);
    tcase_add_test(tc, evas_object_map_perspective_many_faces);
    tcase_add_test(tc, evas_object_map_perspective_anti_alias);
+   tcase_add_test(tc, evas_object_map_perspective_colors);
+   tcase_add_test(tc, evas_object_map_perspective_colors_anti_alias);
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to