Searched defs:TestRec (Results 1 – 2 of 2) sorted by relevance
21 struct TestRec : public SkResourceCache::Rec { struct22 TestKey fKey;23 intptr_t fValue;25 TestRec(const TestKey& key, intptr_t value) : fKey(key), fValue(value) {} in TestRec() argument27 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 "imagecachebench-test"; } in getCategory()30 SkDiscardableMemory* diagnostic_only_getDiscardable() const override { return nullptr; } in diagnostic_only_getDiscardable()32 static bool Visitor(const SkResourceCache::Rec&, void*) { in Visitor()
220 struct TestRec : SkResourceCache::Rec { struct229 TestRec(int sharedID, int32_t data, int* flagPtr) : fKey(sharedID, data), fFlags(flagPtr) { in TestRec() argument249 auto rec0 = std::make_unique<TestRec>(sharedID, data, &flags0); in test_duplicate_add() argument