From: 백근훈 [mailto:knhoon.baik@samsung.com]

Subject: evas scalecache 관련 패치 검토 요청
...

There is the report that evas_engine_dump() does not dump scalecache.
Knhoon made a patch for that.



SVN revision: 55178
This commit is contained in:
Carsten Haitzler 2010-12-03 09:36:17 +00:00
parent 55d73aee65
commit cb41bf7dbd
2 changed files with 15 additions and 1 deletions

View File

@ -124,7 +124,7 @@ evas_common_image_shutdown(void)
EAPI void
evas_common_image_image_all_unload(void)
{
evas_common_rgba_image_scalecache_flush();
evas_common_rgba_image_scalecache_dump();
evas_cache_image_unload_all(eci);
}

View File

@ -359,6 +359,20 @@ evas_common_rgba_image_scalecache_size_get(void)
#endif
}
EAPI void
evas_common_rgba_image_scalecache_dump(void)
{
#ifdef SCALECACHE
int t;
LKL(cache_lock);
t = max_cache_size;
max_cache_size = 0;
_cache_prune(NULL, 0);
max_cache_size = t;
LKU(cache_lock);
#endif
}
EAPI void
evas_common_rgba_image_scalecache_flush(void)
{