Searched defs:BitmapRec (Results 1 – 1 of 1) sorted by relevance
113 struct BitmapRec : public SkResourceCache::Rec { struct114 BitmapRec(const SkBitmapCacheDesc& desc, const SkBitmap& result) in BitmapRec() function123 const Key& getKey() const override { return fKey; } in getKey()124 size_t bytesUsed() const override { return sizeof(fKey) + fBitmap.getSize(); } in bytesUsed()126 const char* getCategory() const override { return "bitmap"; } in getCategory()127 SkDiscardableMemory* diagnostic_only_getDiscardable() const override { in diagnostic_only_getDiscardable()131 static bool Finder(const SkResourceCache::Rec& baseRec, void* contextBitmap) { in Finder()141 BitmapKey fKey;142 SkBitmap fBitmap;