efl/src/lib/evas/cache
Shinwoo Kim 3a89ea15b9 evas cache image: compare with cached image file
As cache2 knows cached image could be not matched even though
hash key is not different.

Please refer to the following comment of evas_cache2_image_open.

   /* image we found doesn't match what's on disk (stat info wise)
    * so dirty the active cache entry so we never find it again. this
    * also implicitly guarantees that we only have 1 active copy
    * of an image at a given key. we wither find it and keep re-reffing
    * it or we dirty it and get it out */

The hash key is created base on the image file address.
If the image file address to find does not equal cached image file address
then it means that the cached image is no longer valid.

This case could happen with the following step.

(1) Call evas_object_image_memfile_set with content data A
(2) Call evas_object_image_memfile_set with content data B
(3) Add timer with short time (ex: 0.01 sec)
(4) Delete A image, and add A image in timer callback
(5) Delete B image, and add B image in timer callback

Sometimes you could see image of A from the B image, because newly created
image at step 5 has same address of setp 1.

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D6870
2018-11-29 16:01:48 -08:00
..
evas_cache.h evas image: fix a bug in image preloading. 2018-09-03 17:12:55 +09:00
evas_cache_engine_image.c evas: remove unused function evas_cache_engine_image_request. 2017-10-05 09:41:41 -07:00
evas_cache_image.c evas cache image: compare with cached image file 2018-11-29 16:01:48 -08:00
evas_preload.c evas: remove ecore init/shutdown calls from everywhere besides evas_main 2018-06-28 15:03:15 -05:00
meson.build here comes meson 2018-10-02 17:22:50 +02:00