summaryrefslogtreecommitdiff
path: root/src/lib/evas/cache2
diff options
context:
space:
mode:
authorPaulo Alcantara <pcacjr@profusion.mobi>2012-12-21 21:13:06 +0000
committerLeandro Pereira <leandro@profusion.mobi>2012-12-21 21:13:06 +0000
commit0809c7de3fdd302f311e12378adeacd6d02a9037 (patch)
tree061ee3c3a1b41149e8ba2ac9c41f2fbd94df65ec /src/lib/evas/cache2
parentfb97c82882a46225886204109880cac4f8704340 (diff)
efl/cserve2: Fix ref/unef of image entries for threads
Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi> SVN revision: 81584
Diffstat (limited to 'src/lib/evas/cache2')
-rw-r--r--src/lib/evas/cache2/evas_cache2.c6
-rw-r--r--src/lib/evas/cache2/evas_cache2.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/evas/cache2/evas_cache2.c b/src/lib/evas/cache2/evas_cache2.c
index 9d5d186ed6..46cca8e169 100644
--- a/src/lib/evas/cache2/evas_cache2.c
+++ b/src/lib/evas/cache2/evas_cache2.c
@@ -892,6 +892,12 @@ evas_cache2_image_scale_load(Image_Entry *im, int src_x, int src_y, int src_w, i
892} 892}
893 893
894EAPI void 894EAPI void
895evas_cache2_image_ref(Image_Entry *im)
896{
897 im->references++;
898}
899
900EAPI void
895evas_cache2_image_close(Image_Entry *im) 901evas_cache2_image_close(Image_Entry *im)
896{ 902{
897 Evas_Cache2 *cache; 903 Evas_Cache2 *cache;
diff --git a/src/lib/evas/cache2/evas_cache2.h b/src/lib/evas/cache2/evas_cache2.h
index 8fc300aca7..5fddd1708e 100644
--- a/src/lib/evas/cache2/evas_cache2.h
+++ b/src/lib/evas/cache2/evas_cache2.h
@@ -61,6 +61,7 @@ EAPI void evas_cache2_shutdown(Evas_Cache2 *cache);
61EAPI Image_Entry * evas_cache2_image_open(Evas_Cache2 *cache, const char *path, const char *key, RGBA_Image_Loadopts *lo, int *error); 61EAPI Image_Entry * evas_cache2_image_open(Evas_Cache2 *cache, const char *path, const char *key, RGBA_Image_Loadopts *lo, int *error);
62EAPI Image_Entry *evas_cache2_image_scale_load(Image_Entry *im, int src_x, int src_y, int src_w, int src_h, int dst_w, int dst_h, int smooth); 62EAPI Image_Entry *evas_cache2_image_scale_load(Image_Entry *im, int src_x, int src_y, int src_w, int src_h, int dst_w, int dst_h, int smooth);
63EAPI int evas_cache2_image_open_wait(Image_Entry *im); 63EAPI int evas_cache2_image_open_wait(Image_Entry *im);
64EAPI void evas_cache2_image_ref(Image_Entry *im);
64EAPI void evas_cache2_image_close(Image_Entry *im); 65EAPI void evas_cache2_image_close(Image_Entry *im);
65EAPI int evas_cache2_image_load_data(Image_Entry *ie); 66EAPI int evas_cache2_image_load_data(Image_Entry *ie);
66EAPI void evas_cache2_image_unload_data(Image_Entry *im); 67EAPI void evas_cache2_image_unload_data(Image_Entry *im);