src/hbservers/hbthemeserver/hbicondatacache_p.h
changeset 34 ed14f46c0e55
parent 7 923ff622b8b9
--- a/src/hbservers/hbthemeserver/hbicondatacache_p.h	Mon Oct 04 17:49:30 2010 +0300
+++ b/src/hbservers/hbthemeserver/hbicondatacache_p.h	Mon Oct 18 18:23:13 2010 +0300
@@ -46,10 +46,12 @@
     void setMaxCpuCacheSize(int size);
     bool contains(const HbIconKey &key) const;
     HbIconCacheItem* value(const HbIconKey &key) const;
-    bool isItemCachableInGpu(const HbIconCacheItem *item)const;
-    bool isItemCachableInCpu(const HbIconCacheItem *item)const;
+    bool isItemCachableInGpu(int itemCost, HbIconFormatType type)const;
+    bool isItemCachableInCpu(int itemCost, HbIconFormatType type)const;
+    bool isItemCacheable(const HbIconCacheItem * item );
     void memoryGood();
     void freeGpuRam(int bytes, bool useSwRendering);
+    void freeGpuRam();
     void freeUnusedGpuResources();
     QVector<const HbIconKey *> getKeys(const QString &filename) const;
 
@@ -71,6 +73,9 @@
     int rasterLruCount();
     int vectorLruCount();
 #endif
+    int cachedSgImagesCount() const;
+    int totalSgImagesCost() const;
+    int cachedPixmapCount() const;
 
 private: