Searched refs:TestRec (Results 1 – 4 of 4) sorted by relevance
/third_party/flutter/skia/tests/ |
D | SkResourceCacheTest.cpp | 220 struct TestRec : SkResourceCache::Rec { struct 229 TestRec(int sharedID, int32_t data, int* flagPtr) : fKey(sharedID, data), fFlags(flagPtr) { in TestRec() argument 249 auto rec0 = skstd::make_unique<TestRec>(sharedID, data, &flags0); in test_duplicate_add() argument 250 auto rec1 = skstd::make_unique<TestRec>(sharedID, data, &flags1); in test_duplicate_add() 253 TestRec* r0 = rec0.get(); // save the bare-pointer since we will release rec0 in test_duplicate_add() 256 REPORTER_ASSERT(reporter, !(flags0 & TestRec::kDidInstall)); in test_duplicate_add() 257 REPORTER_ASSERT(reporter, !(flags1 & TestRec::kDidInstall)); in test_duplicate_add() 260 REPORTER_ASSERT(reporter, flags0 & TestRec::kDidInstall); in test_duplicate_add() 261 REPORTER_ASSERT(reporter, !(flags1 & TestRec::kDidInstall)); in test_duplicate_add() 267 REPORTER_ASSERT(reporter, !(flags0 & TestRec::kDidInstall)); in test_duplicate_add() [all …]
|
/third_party/skia/tests/ |
D | SkResourceCacheTest.cpp | 220 struct TestRec : SkResourceCache::Rec { struct 229 TestRec(int sharedID, int32_t data, int* flagPtr) : fKey(sharedID, data), fFlags(flagPtr) { in TestRec() argument 249 auto rec0 = std::make_unique<TestRec>(sharedID, data, &flags0); in test_duplicate_add() argument 250 auto rec1 = std::make_unique<TestRec>(sharedID, data, &flags1); in test_duplicate_add() 253 TestRec* r0 = rec0.get(); // save the bare-pointer since we will release rec0 in test_duplicate_add() 256 REPORTER_ASSERT(reporter, !(flags0 & TestRec::kDidInstall)); in test_duplicate_add() 257 REPORTER_ASSERT(reporter, !(flags1 & TestRec::kDidInstall)); in test_duplicate_add() 260 REPORTER_ASSERT(reporter, flags0 & TestRec::kDidInstall); in test_duplicate_add() 261 REPORTER_ASSERT(reporter, !(flags1 & TestRec::kDidInstall)); in test_duplicate_add() 267 REPORTER_ASSERT(reporter, !(flags0 & TestRec::kDidInstall)); in test_duplicate_add() [all …]
|
/third_party/skia/bench/ |
D | ImageCacheBench.cpp | 21 struct TestRec : public SkResourceCache::Rec { struct 25 TestRec(const TestKey& key, intptr_t value) : fKey(key), fValue(value) {} in TestRec() argument 49 fCache.add(new TestRec(TestKey(i), i)); in populateCache() 66 SkDEBUGCODE(bool found =) fCache.find(key, TestRec::Visitor, nullptr); in onDraw()
|
/third_party/flutter/skia/bench/ |
D | ImageCacheBench.cpp | 21 struct TestRec : public SkResourceCache::Rec { struct 25 TestRec(const TestKey& key, intptr_t value) : fKey(key), fValue(value) {} in TestRec() function 49 fCache.add(new TestRec(TestKey(i), i)); in populateCache() 66 SkDEBUGCODE(bool found =) fCache.find(key, TestRec::Visitor, nullptr); in onDraw()
|