summaryrefslogtreecommitdiff
path: root/src/lib/evas/cserve2/evas_cs2_image_data.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2013-09-09 13:57:45 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2013-10-28 15:47:15 +0900
commitfc73405c40653a5fc0166690e3657ffd87069efc (patch)
treeb6fc15bc9e1babdbfed3ea0566d35c5f2d5c6b65 /src/lib/evas/cserve2/evas_cs2_image_data.c
parent0d506a7b7369aad8376336497e755092cbe8cb40 (diff)
evas/cserve2: Add cache hit count on image data
Diffstat (limited to 'src/lib/evas/cserve2/evas_cs2_image_data.c')
-rw-r--r--src/lib/evas/cserve2/evas_cs2_image_data.c9
1 files changed, 9 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