Home
last modified time | relevance | path

Searched defs:TestingRec (Results 1 – 1 of 1) sorted by relevance

/aosp_15_r20/external/skia/tests/
H A DImageCacheTest.cpp27 struct TestingRec : public SkResourceCache::Rec { struct
28 TestingRec(const TestingKey& key, uint32_t value) : fKey(key), fValue(value) {} in TestingRec() argument
30 TestingKey fKey;
31 intptr_t fValue;
33 const Key& getKey() const override { return fKey; } in getKey()
34 size_t bytesUsed() const override { return sizeof(fKey) + sizeof(fValue); } in bytesUsed()
35 const char* getCategory() const override { return "test_cache"; } in getCategory()
36 SkDiscardableMemory* diagnostic_only_getDiscardable() const override { return nullptr; } in diagnostic_only_getDiscardable()
38 static bool Visitor(const SkResourceCache::Rec& baseRec, void* context) { in Visitor()