Searched defs:MipMapRec (Results 1 – 2 of 2) sorted by relevance
232 struct MipMapRec : public SkResourceCache::Rec { struct233 MipMapRec(const SkBitmapCacheDesc& desc, const SkMipMap* result) in MipMapRec() function240 ~MipMapRec() override { in ~MipMapRec()244 const Key& getKey() const override { return fKey; } in getKey()245 size_t bytesUsed() const override { return sizeof(fKey) + fMipMap->size(); } in bytesUsed()246 const char* getCategory() const override { return "mipmap"; } in getCategory()247 SkDiscardableMemory* diagnostic_only_getDiscardable() const override { in diagnostic_only_getDiscardable()251 static bool Finder(const SkResourceCache::Rec& baseRec, void* contextMip) { in Finder()266 MipMapKey fKey;267 const SkMipMap* fMipMap;
232 struct MipMapRec : public SkResourceCache::Rec { struct233 MipMapRec(const SkBitmapCacheDesc& desc, const SkMipMap* result) in MipMapRec() argument240 ~MipMapRec() override { in ~MipMapRec()244 const Key& getKey() const override { return fKey; } in getKey()245 size_t bytesUsed() const override { return sizeof(fKey) + fMipMap->size(); } in bytesUsed()246 const char* getCategory() const override { return "mipmap"; } in getCategory()247 SkDiscardableMemory* diagnostic_only_getDiscardable() const override { in diagnostic_only_getDiscardable()251 static bool Finder(const SkResourceCache::Rec& baseRec, void* contextMip) { in Finder()266 MipMapKey fKey;267 const SkMipMap* fMipMap;