Home
last modified time | relevance | path

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

/third_party/skia/tests/
DImageCacheTest.cpp21 struct TestingRec : public SkResourceCache::Rec { struct
22 TestingRec(const TestingKey& key, uint32_t value) : fKey(key), fValue(value) {} in TestingRec() function
24 TestingKey fKey;
25 intptr_t fValue;
27 const Key& getKey() const override { return fKey; } in getKey()
28 size_t bytesUsed() const override { return sizeof(fKey) + sizeof(fValue); } in bytesUsed()
29 const char* getCategory() const override { return "test_cache"; } in getCategory()
30 SkDiscardableMemory* diagnostic_only_getDiscardable() const override { return nullptr; } in diagnostic_only_getDiscardable()
32 static bool Visitor(const SkResourceCache::Rec& baseRec, void* context) { in Visitor()