[*]add animation image code to gl engine.
authorJiyoun Park <jy0703.park@samsung.com>
Thu, 3 Nov 2011 15:00:47 +0000 (00:00 +0900)
committerJiyoun Park <jy0703.park@samsung.com>
Thu, 3 Nov 2011 15:00:47 +0000 (00:00 +0900)
currently only software engine support animated image cache
I add this to gl engine

Change-Id: I5d88d7a472a62eb8b7a1913fd675a62cbf00d26c

src/modules/engines/gl_common/evas_gl_image.c

index f3734fb..1d4b1f8 100644 (file)
@@ -535,7 +535,9 @@ evas_gl_common_image_dirty(Evas_GL_Image *im, unsigned int x, unsigned int y, un
 void
 evas_gl_common_image_update(Evas_Engine_GL_Context *gc, Evas_GL_Image *im)
 {
+   Image_Entry *ie;
    if (!im->im) return;
+   ie = (Image_Entry *)(im->im);
 /*
    if ((im->cs.space == EVAS_COLORSPACE_YCBCR422P601_PL) ||
        (im->cs.space == EVAS_COLORSPACE_YCBCR422P709_PL))
@@ -560,7 +562,8 @@ evas_gl_common_image_update(Evas_Engine_GL_Context *gc, Evas_GL_Image *im)
    switch (im->cs.space)
      {
       case EVAS_COLORSPACE_ARGB8888:
-       if ((im->tex) && (im->dirty))
+         if ((im->tex) &&
+             ((im->dirty) || (ie->flags.animated)))
           {
              evas_cache_image_load_data(&im->im->cache_entry);
              evas_gl_common_texture_update(im->tex, im->im);