src/hbservers/hbthemeserver/hbicondatacache_p.h
changeset 21 4633027730f5
parent 7 923ff622b8b9
child 23 e6ad4ef83b23
equal deleted inserted replaced
7:923ff622b8b9 21:4633027730f5
    48     HbIconCacheItem* value(const HbIconKey &key) const;
    48     HbIconCacheItem* value(const HbIconKey &key) const;
    49     bool isItemCachableInGpu(const HbIconCacheItem *item)const;
    49     bool isItemCachableInGpu(const HbIconCacheItem *item)const;
    50     bool isItemCachableInCpu(const HbIconCacheItem *item)const;
    50     bool isItemCachableInCpu(const HbIconCacheItem *item)const;
    51     void memoryGood();
    51     void memoryGood();
    52     void freeGpuRam(int bytes, bool useSwRendering);
    52     void freeGpuRam(int bytes, bool useSwRendering);
       
    53     void freeGpuRam();
    53     void freeUnusedGpuResources();
    54     void freeUnusedGpuResources();
    54     QVector<const HbIconKey *> getKeys(const QString &filename) const;
    55     QVector<const HbIconKey *> getKeys(const QString &filename) const;
    55 
    56 
    56     int gpuLRUSize() const;
    57     int gpuLRUSize() const;
    57 //Debug Code for Test Purpose
    58 //Debug Code for Test Purpose
    69     int cacheHitCount();
    70     int cacheHitCount();
    70     int cacheMissCount();
    71     int cacheMissCount();
    71     int rasterLruCount();
    72     int rasterLruCount();
    72     int vectorLruCount();
    73     int vectorLruCount();
    73 #endif
    74 #endif
       
    75     int cachedSgImagesCount() const;
       
    76     int cachedPixmapCount() const;
    74 
    77 
    75 private:
    78 private:
    76 
    79 
    77     void createGpuCacheSpace(int itemCost);
    80     void createGpuCacheSpace(int itemCost);
    78     void createCpuCacheSpace(int itemCost);
    81     void createCpuCacheSpace(int itemCost);