Home
last modified time | relevance | path

Searched refs:TestingKey (Results 1 – 2 of 2) sorted by relevance

/external/skia/tests/
DImageCacheTest.cpp14 struct TestingKey : public SkResourceCache::Key { struct
17 TestingKey(intptr_t value, uint64_t sharedID = 0) : fValue(value) { in TestingKey() function
22 TestingRec(const TestingKey& key, uint32_t value) : fKey(key), fValue(value) {} in TestingRec()
24 TestingKey fKey;
47 TestingKey key(i); in test_cache()
62 TestingKey key(i); in test_cache()
70 (void)cache.find(TestingKey(i), TestingRec::Visitor, &value); in test_cache()
78 TestingKey key(i, i & 1); // every other key will have a 1 for its sharedID in test_cache_purge_shared_id()
84 TestingKey key(i, i & 1); // every other key will have a 1 for its sharedID in test_cache_purge_shared_id()
96 TestingKey key(i, i & 1); // every other key will have a 1 for its sharedID in test_cache_purge_shared_id()
[all …]
/external/skqp/tests/
DImageCacheTest.cpp14 struct TestingKey : public SkResourceCache::Key { struct
17 TestingKey(intptr_t value, uint64_t sharedID = 0) : fValue(value) { in TestingKey() function
22 TestingRec(const TestingKey& key, uint32_t value) : fKey(key), fValue(value) {} in TestingRec()
24 TestingKey fKey;
47 TestingKey key(i); in test_cache()
62 TestingKey key(i); in test_cache()
70 (void)cache.find(TestingKey(i), TestingRec::Visitor, &value); in test_cache()
78 TestingKey key(i, i & 1); // every other key will have a 1 for its sharedID in test_cache_purge_shared_id()
84 TestingKey key(i, i & 1); // every other key will have a 1 for its sharedID in test_cache_purge_shared_id()
96 TestingKey key(i, i & 1); // every other key will have a 1 for its sharedID in test_cache_purge_shared_id()
[all …]