summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorHermet Park <chuneon.park@samsung.com>2021-03-22 10:42:35 +0900
committerHermet Park <chuneon.park@samsung.com>2021-03-22 10:42:35 +0900
commite6019ce6d9ff637add3c8cde2f70e859920bb417 (patch)
tree9895a311978d53b6ad8ea3feefadb30a0c1df4cd /src/modules
parentb4460591b4295cbe629ee545b29336c81b03df3b (diff)
parent5f4524295a623117c58955c839c34462197b1197 (diff)
Merge branch 'master' into devs/hermet/lottie
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_image.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_image.c b/src/modules/evas/engines/gl_common/evas_gl_image.c
index 7d05cab15d..3a75852ed0 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_image.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_image.c
@@ -69,10 +69,17 @@ _evas_gl_image_cache_add(Evas_GL_Image *im)
69{ 69{
70 if (im->references == 0) 70 if (im->references == 0)
71 { 71 {
72 im->csize = im->w * im->h * 4; 72 if (im->cached)
73 im->gc->shared->images_size += im->csize; 73 {
74 _evas_gl_image_cache_trim(im->gc); 74 im->csize = im->w * im->h * 4;
75 return EINA_TRUE; 75 im->gc->shared->images_size += im->csize;
76 _evas_gl_image_cache_trim(im->gc);
77 if (!eina_list_data_find(im->gc->shared->images, im))
78 { // FIXME for a messed up caching system... this used to be simple
79 im->gc->shared->images = eina_list_prepend(im->gc->shared->images, im);
80 }
81 return EINA_TRUE;
82 }
76 } 83 }
77 else 84 else
78 { 85 {