aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_object_image.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-10-02 16:32:05 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-10-02 16:56:38 +0900
commit2317bb83fc830e302d23047dc7ab06e61333a4dc (patch)
treec0f1307ea8eabe0523fbd1d386d8d4961e0bfc0e /src/lib/evas/canvas/evas_object_image.c
parenteldbus: fix _eldbus_message_iter_arguments_vget (diff)
downloadefl-2317bb83fc830e302d23047dc7ab06e61333a4dc.tar.gz
Evas image: Simplify updates if adding whole region at once
Diffstat (limited to 'src/lib/evas/canvas/evas_object_image.c')
-rw-r--r--src/lib/evas/canvas/evas_object_image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c
index ee177c2929..b366831ab5 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -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)
{