src/hbservers/hbthemeserver/hbicondatacache_p.h
changeset 34 ed14f46c0e55
parent 7 923ff622b8b9
equal deleted inserted replaced
31:7516d6d86cf5 34:ed14f46c0e55
    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
    69     int cacheHitCount();
    71     int cacheHitCount();
    70     int cacheMissCount();
    72     int cacheMissCount();
    71     int rasterLruCount();
    73     int rasterLruCount();
    72     int vectorLruCount();
    74     int vectorLruCount();
    73 #endif
    75 #endif
       
    76     int cachedSgImagesCount() const;
       
    77     int totalSgImagesCost() const;
       
    78     int cachedPixmapCount() const;
    74 
    79 
    75 private:
    80 private:
    76 
    81 
    77     void createGpuCacheSpace(int itemCost);
    82     void createGpuCacheSpace(int itemCost);
    78     void createCpuCacheSpace(int itemCost);
    83     void createCpuCacheSpace(int itemCost);