Searched defs:BitmapRec (Results 1 – 1 of 1) sorted by relevance
118 struct BitmapRec : public SkResourceCache::Rec { struct119 BitmapRec(uint32_t genID, int width, int height, const SkIRect& bounds, in BitmapRec() function129 BitmapRec(const SkBitmapCacheDesc& desc, const SkBitmap& result) in BitmapRec() argument138 const Key& getKey() const override { return fKey; } in getKey()139 size_t bytesUsed() const override { return sizeof(fKey) + fBitmap.getSize(); } in bytesUsed()141 const char* getCategory() const override { return "bitmap"; } in getCategory()142 SkDiscardableMemory* diagnostic_only_getDiscardable() const override { in diagnostic_only_getDiscardable()146 static bool Finder(const SkResourceCache::Rec& baseRec, void* contextBitmap) { in Finder()156 BitmapKey fKey;157 SkBitmap fBitmap;