src/hbservers/hbthemeserver/hbicondatacache_p.h
changeset 7 923ff622b8b9
parent 5 627c4a0fd0e7
child 21 4633027730f5
child 34 ed14f46c0e55
equal deleted inserted replaced
6:c3690ec91ef8 7:923ff622b8b9
    51     void memoryGood();
    51     void memoryGood();
    52     void freeGpuRam(int bytes, bool useSwRendering);
    52     void freeGpuRam(int bytes, bool useSwRendering);
    53     void freeUnusedGpuResources();
    53     void freeUnusedGpuResources();
    54     QVector<const HbIconKey *> getKeys(const QString &filename) const;
    54     QVector<const HbIconKey *> getKeys(const QString &filename) const;
    55 
    55 
       
    56     int gpuLRUSize() const;
    56 //Debug Code for Test Purpose
    57 //Debug Code for Test Purpose
    57 #ifdef HB_ICON_CACHE_DEBUG
    58 #ifdef HB_ICON_CACHE_DEBUG
    58     void cleanVectorLRUList();
    59     void cleanVectorLRUList();
    59     void cleanRasterLRUList();
    60     void cleanRasterLRUList();
    60     int count() const;
    61     int count() const;
    67     bool enableCache(bool cacheIt);
    68     bool enableCache(bool cacheIt);
    68     int cacheHitCount();
    69     int cacheHitCount();
    69     int cacheMissCount();
    70     int cacheMissCount();
    70     int rasterLruCount();
    71     int rasterLruCount();
    71     int vectorLruCount();
    72     int vectorLruCount();
    72     int gpuLRUSize() const;
       
    73 #endif
    73 #endif
    74 
    74 
    75 private:
    75 private:
    76 
    76 
    77     void createGpuCacheSpace(int itemCost);
    77     void createGpuCacheSpace(int itemCost);