summaryrefslogtreecommitdiff
path: root/src/lib/evas/cserve2
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas/cserve2')
-rw-r--r--src/lib/evas/cserve2/evas_cs2_image_data.c9
-rw-r--r--src/lib/evas/cserve2/evas_cs2_private.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/evas/cserve2/evas_cs2_image_data.c b/src/lib/evas/cserve2/evas_cs2_image_data.c
index a5e49da396..845107e55b 100644
--- a/src/lib/evas/cserve2/evas_cs2_image_data.c
+++ b/src/lib/evas/cserve2/evas_cs2_image_data.c
@@ -20,4 +20,13 @@ evas_cserve2_image_data_get(Image_Entry *ie)
20 return dentry->shm.data; 20 return dentry->shm.data;
21} 21}
22 22
23unsigned int
24evas_cserve2_image_hit(Image_Entry *ie)
25{
26 Data_Entry *dentry = ie->data2;
27
28 if (!dentry) return 0;
29 return ++dentry->hit_count;
30}
31
23#endif 32#endif
diff --git a/src/lib/evas/cserve2/evas_cs2_private.h b/src/lib/evas/cserve2/evas_cs2_private.h
index 8d12e693c7..c0ed575f81 100644
--- a/src/lib/evas/cserve2/evas_cs2_private.h
+++ b/src/lib/evas/cserve2/evas_cs2_private.h
@@ -14,6 +14,7 @@ typedef struct _Shared_Buffer Shared_Buffer;
14struct _Data_Entry 14struct _Data_Entry
15{ 15{
16 unsigned int image_id; 16 unsigned int image_id;
17 unsigned int hit_count;
17 void (*preloaded_cb)(void *, Eina_Bool); 18 void (*preloaded_cb)(void *, Eina_Bool);
18 struct { 19 struct {
19 const char *path; 20 const char *path;
@@ -81,6 +82,7 @@ Eina_Bool evas_cserve2_image_preload(Image_Entry *ie, void (*preloaded_cb)(void
81void evas_cserve2_dispatch(void); 82void evas_cserve2_dispatch(void);
82 83
83void *evas_cserve2_image_data_get(Image_Entry *ie); 84void *evas_cserve2_image_data_get(Image_Entry *ie);
85unsigned int evas_cserve2_image_hit(Image_Entry *ie);
84 86
85Font_Entry *evas_cserve2_font_load(const char *source, const char *name, int size, int dpi, Font_Rend_Flags wanted_rend); 87Font_Entry *evas_cserve2_font_load(const char *source, const char *name, int size, int dpi, Font_Rend_Flags wanted_rend);
86EAPI int evas_cserve2_font_load_wait(Font_Entry *fe); 88EAPI int evas_cserve2_font_load_wait(Font_Entry *fe);