44 bool remove(const HbIconKey& key, bool keepInCache = true); |
44 bool remove(const HbIconKey& key, bool keepInCache = true); |
45 void setMaxGpuCacheSize(int size); |
45 void setMaxGpuCacheSize(int size); |
46 void setMaxCpuCacheSize(int size); |
46 void setMaxCpuCacheSize(int size); |
47 bool contains(const HbIconKey &key) const; |
47 bool contains(const HbIconKey &key) const; |
48 HbIconCacheItem* value(const HbIconKey &key) const; |
48 HbIconCacheItem* value(const HbIconKey &key) const; |
49 bool isItemCachableInGpu(const HbIconCacheItem *item)const; |
49 bool isItemCachableInGpu(int itemCost, HbIconFormatType type)const; |
50 bool isItemCachableInCpu(const HbIconCacheItem *item)const; |
50 bool isItemCachableInCpu(int itemCost, HbIconFormatType type)const; |
|
51 bool isItemCacheable(const HbIconCacheItem * item ); |
51 void memoryGood(); |
52 void memoryGood(); |
52 void freeGpuRam(int bytes, bool useSwRendering); |
53 void freeGpuRam(int bytes, bool useSwRendering); |
|
54 void freeGpuRam(); |
53 void freeUnusedGpuResources(); |
55 void freeUnusedGpuResources(); |
54 QVector<const HbIconKey *> getKeys(const QString &filename) const; |
56 QVector<const HbIconKey *> getKeys(const QString &filename) const; |
55 |
57 |
56 int gpuLRUSize() const; |
58 int gpuLRUSize() const; |
57 //Debug Code for Test Purpose |
59 //Debug Code for Test Purpose |