equal
deleted
inserted
replaced
36 public: |
36 public: |
37 HbIconDataCache(); |
37 HbIconDataCache(); |
38 ~HbIconDataCache(); |
38 ~HbIconDataCache(); |
39 void clear(); |
39 void clear(); |
40 HbIconCacheItem* getCacheItem(const HbIconKey &key , |
40 HbIconCacheItem* getCacheItem(const HbIconKey &key , |
|
41 HbRenderingMode currentRenderingMode, |
41 bool isMultiIconPiece = false); |
42 bool isMultiIconPiece = false); |
42 bool insert(const HbIconKey &key, HbIconCacheItem* item); |
43 bool insert(const HbIconKey &key, HbIconCacheItem* item); |
43 bool remove(const HbIconKey& key, bool keepInCache = true); |
44 bool remove(const HbIconKey& key, bool keepInCache = true); |
44 void setMaxGpuCacheSize(int size); |
45 void setMaxGpuCacheSize(int size); |
45 void setMaxCpuCacheSize(int size); |
46 void setMaxCpuCacheSize(int size); |
47 HbIconCacheItem* value(const HbIconKey &key) const; |
48 HbIconCacheItem* value(const HbIconKey &key) const; |
48 bool isItemCachableInGpu(const HbIconCacheItem* item)const; |
49 bool isItemCachableInGpu(const HbIconCacheItem* item)const; |
49 bool isItemCachableInCpu(const HbIconCacheItem* item)const; |
50 bool isItemCachableInCpu(const HbIconCacheItem* item)const; |
50 void memoryGood(); |
51 void memoryGood(); |
51 void freeGpuRam(int bytes); |
52 void freeGpuRam(int bytes); |
|
53 void freeUnusedGpuResources(); |
52 QVector<const HbIconKey *> getKeys(const QString &filename) const; |
54 QVector<const HbIconKey *> getKeys(const QString &filename) const; |
53 |
55 |
54 //Debug Code for Test Purpose |
56 //Debug Code for Test Purpose |
55 #ifdef HB_ICON_CACHE_DEBUG |
57 #ifdef HB_ICON_CACHE_DEBUG |
56 void cleanVectorLRUList(); |
58 void cleanVectorLRUList(); |