Home
last modified time | relevance | path

Searched refs:TestRec (Results 1 – 4 of 4) sorted by relevance

/external/skqp/tests/
DSkResourceCacheTest.cpp222 struct TestRec : SkResourceCache::Rec { struct
231 TestRec(int sharedID, int32_t data, int* flagPtr) : fKey(sharedID, data), fFlags(flagPtr) { in TestRec() argument
251 auto rec0 = skstd::make_unique<TestRec>(sharedID, data, &flags0); in test_duplicate_add() argument
252 auto rec1 = skstd::make_unique<TestRec>(sharedID, data, &flags1); in test_duplicate_add()
255 TestRec* r0 = rec0.get(); // save the bare-pointer since we will release rec0 in test_duplicate_add()
258 REPORTER_ASSERT(reporter, !(flags0 & TestRec::kDidInstall)); in test_duplicate_add()
259 REPORTER_ASSERT(reporter, !(flags1 & TestRec::kDidInstall)); in test_duplicate_add()
262 REPORTER_ASSERT(reporter, flags0 & TestRec::kDidInstall); in test_duplicate_add()
263 REPORTER_ASSERT(reporter, !(flags1 & TestRec::kDidInstall)); in test_duplicate_add()
269 REPORTER_ASSERT(reporter, !(flags0 & TestRec::kDidInstall)); in test_duplicate_add()
[all …]
/external/skia/tests/
DSkResourceCacheTest.cpp220 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 …]
/external/skia/bench/
DImageCacheBench.cpp21 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()
/external/skqp/bench/
DImageCacheBench.cpp21 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()