Searched defs:TestRec (Results 1 – 4 of 4) sorted by relevance
/external/skia/bench/ |
D | ImageCacheBench.cpp | 21 struct TestRec : public SkResourceCache::Rec { struct 22 TestKey fKey; 23 intptr_t fValue; 25 TestRec(const TestKey& key, intptr_t value) : fKey(key), fValue(value) {} in TestRec() function 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 "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()
|
/external/skqp/bench/ |
D | ImageCacheBench.cpp | 21 struct TestRec : public SkResourceCache::Rec { struct 22 TestKey fKey; 23 intptr_t fValue; 25 TestRec(const TestKey& key, intptr_t value) : fKey(key), fValue(value) {} in TestRec() function 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 "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()
|
/external/skqp/tests/ |
D | SkResourceCacheTest.cpp | 222 struct TestRec : SkResourceCache::Rec { struct 231 TestRec(int sharedID, int32_t data, int* flagPtr) : fKey(sharedID, data), fFlags(flagPtr) { in TestRec() function 251 auto rec0 = skstd::make_unique<TestRec>(sharedID, data, &flags0); in test_duplicate_add() argument
|
/external/skia/tests/ |
D | SkResourceCacheTest.cpp | 222 struct TestRec : SkResourceCache::Rec { struct 231 TestRec(int sharedID, int32_t data, int* flagPtr) : fKey(sharedID, data), fFlags(flagPtr) { in TestRec() function 251 auto rec0 = skstd::make_unique<TestRec>(sharedID, data, &flags0); in test_duplicate_add() argument
|