Evas image: Simplify updates if adding whole region at once
authorJean-Philippe Andre <jp.andre@samsung.com>
Fri, 2 Oct 2015 07:32:05 +0000 (16:32 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Fri, 2 Oct 2015 07:56:38 +0000 (16:56 +0900)
src/lib/evas/canvas/evas_object_image.c

index ee177c2..b366831 100644 (file)
@@ -1505,7 +1505,8 @@ _evas_image_data_update_add(Eo *eo_obj, Evas_Image_Data *o, int x, int y, int w,
                return;
           }
      }
-   if (cnt >= 512)
+   if ((cnt >= 512) ||
+       (((x == 0) && (y == 0) && (w == o->cur->image.w) && (h == o->cur->image.h))))
      { // too many update rects - just make a single blob update
         EINA_COW_PIXEL_WRITE_BEGIN(o, pixi_write)
           {