forked from enlightenment/efl
parent
021597ec25
commit
c28878389d
|
@ -156,17 +156,22 @@ evas_cache_image_request(Evas_Cache_Image *cache, const char *file, const char *
|
||||||
|
|
||||||
im = evas_hash_find(cache->activ, hkey);
|
im = evas_hash_find(cache->activ, hkey);
|
||||||
if (im)
|
if (im)
|
||||||
goto on_ok;
|
{
|
||||||
|
if (st.st_mtime == im->timestamp)
|
||||||
|
goto on_ok;
|
||||||
|
}
|
||||||
|
|
||||||
im = evas_hash_find(cache->inactiv, hkey);
|
im = evas_hash_find(cache->inactiv, hkey);
|
||||||
if (im)
|
if (im)
|
||||||
{
|
{
|
||||||
cache->lru = evas_object_list_remove(cache->lru, im);
|
if (st.st_mtime == im->timestamp)
|
||||||
cache->inactiv = evas_hash_del(cache->inactiv, im->cache_key, im);
|
{
|
||||||
cache->activ = evas_hash_direct_add(cache->activ, im->cache_key, im);
|
cache->lru = evas_object_list_remove(cache->lru, im);
|
||||||
cache->usage -= cache->func.mem_size_get(im);
|
cache->inactiv = evas_hash_del(cache->inactiv, im->cache_key, im);
|
||||||
|
cache->activ = evas_hash_direct_add(cache->activ, im->cache_key, im);
|
||||||
goto on_ok;
|
cache->usage -= cache->func.mem_size_get(im);
|
||||||
|
goto on_ok;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
im = evas_common_image_new();
|
im = evas_common_image_new();
|
||||||
|
|
Loading…
Reference in New Issue