/external/skia/src/core/ |
D | SkResourceCache.cpp | 19 DECLARE_SKMESSAGEBUS_MESSAGE(SkResourceCache::PurgeSharedIDMessage) in DECLARE_SKMESSAGEBUS_MESSAGE() 32 void SkResourceCache::Key::init(void* nameSpace, uint64_t sharedID, size_t dataSize) { in DECLARE_SKMESSAGEBUS_MESSAGE() 58 static uint32_t Hash(const SkResourceCache::Key& key) { return key.hash(); } in Hash() 59 static const SkResourceCache::Key& GetKey(const SkResourceCache::Rec* rec) { in GetKey() 65 class SkResourceCache::Hash : 66 public SkTHashTable<SkResourceCache::Rec*, SkResourceCache::Key, HashTraits> {}; 71 void SkResourceCache::init() { in init() 84 SkResourceCache::SkResourceCache(DiscardableFactory factory) { in SkResourceCache() function in SkResourceCache 89 SkResourceCache::SkResourceCache(size_t byteLimit) { in SkResourceCache() function in SkResourceCache 94 SkResourceCache::~SkResourceCache() { in ~SkResourceCache() [all …]
|
D | SkMaskCache.cpp | 11 ((localCache) ? localCache->localName(__VA_ARGS__) : SkResourceCache::globalName(__VA_ARGS__)) 21 struct RRectBlurKey : public SkResourceCache::Key { 39 struct RRectBlurRec : public SkResourceCache::Rec { 61 static bool Visitor(const SkResourceCache::Rec& baseRec, void* contextData) { in Visitor() 78 const SkRRect& rrect, SkMask* mask, SkResourceCache* localCache) { in FindAndRef() 92 SkResourceCache* localCache) { in Add() 102 struct RectsBlurKey : public SkResourceCache::Key { 133 struct RectsBlurRec : public SkResourceCache::Rec { 155 static bool Visitor(const SkResourceCache::Rec& baseRec, void* contextData) { in Visitor() 173 SkResourceCache* localCache) { in FindAndRef() [all …]
|
D | SkBitmapCache.cpp | 24 SkResourceCache::PostPurgeSharedID(SkMakeResourceCacheSharedIDForBitmap(bitmapGenID)); in SkNotifyBitmapGenIDIsStale() 93 struct BitmapKey : public SkResourceCache::Key { 124 class SkBitmapCache::Rec : public SkResourceCache::Rec { 242 static bool Finder(const SkResourceCache::Rec& baseRec, void* contextBitmap) { in Finder() 300 auto factory = SkResourceCache::GetDiscardableFactory(); in Alloc() 314 SkResourceCache::Add(rec.release(), bitmap); in Add() 319 return SkResourceCache::Find(BitmapKey(desc), SkBitmapCache::Rec::Finder, result); in Find() 326 ((localCache) ? localCache->localName(__VA_ARGS__) : SkResourceCache::globalName(__VA_ARGS__)) 331 struct MipMapKey : public SkResourceCache::Key { 349 struct MipMapRec : public SkResourceCache::Rec { [all …]
|
D | SkYUVPlanesCache.cpp | 13 ((localCache) ? localCache->localName(__VA_ARGS__) : SkResourceCache::globalName(__VA_ARGS__)) 23 struct YUVPlanesKey : public SkResourceCache::Key { 34 struct YUVPlanesRec : public SkResourceCache::Rec { 56 static bool Visitor(const SkResourceCache::Rec& baseRec, void* contextData) { in Visitor() 74 SkResourceCache* localCache) { in FindAndRef() 86 SkResourceCache* localCache) { in Add()
|
D | SkMaskCache.h | 28 SkResourceCache* localCache = nullptr); 31 SkResourceCache* localCache = nullptr); 38 SkResourceCache* localCache = nullptr); 41 SkResourceCache* localCache = nullptr);
|
D | SkResourceCache.h | 29 class SkResourceCache { 75 typedef SkResourceCache::Key Key; 109 friend class SkResourceCache; member 200 SkResourceCache(DiscardableFactory); 208 explicit SkResourceCache(size_t byteLimit); 209 ~SkResourceCache();
|
D | SkYUVPlanesCache.h | 15 class SkResourceCache; variable 36 SkResourceCache* localCache = nullptr); 42 SkResourceCache* localCache = nullptr);
|
D | SkBitmapCache.h | 15 class SkResourceCache; variable 68 SkResourceCache* localCache = nullptr); 70 SkResourceCache* localCache = nullptr);
|
/external/skqp/src/core/ |
D | SkResourceCache.cpp | 19 DECLARE_SKMESSAGEBUS_MESSAGE(SkResourceCache::PurgeSharedIDMessage) in DECLARE_SKMESSAGEBUS_MESSAGE() 32 void SkResourceCache::Key::init(void* nameSpace, uint64_t sharedID, size_t dataSize) { in DECLARE_SKMESSAGEBUS_MESSAGE() 58 static uint32_t Hash(const SkResourceCache::Key& key) { return key.hash(); } in Hash() 59 static const SkResourceCache::Key& GetKey(const SkResourceCache::Rec* rec) { in GetKey() 65 class SkResourceCache::Hash : 66 public SkTHashTable<SkResourceCache::Rec*, SkResourceCache::Key, HashTraits> {}; 71 void SkResourceCache::init() { in init() 84 SkResourceCache::SkResourceCache(DiscardableFactory factory) { in SkResourceCache() function in SkResourceCache 89 SkResourceCache::SkResourceCache(size_t byteLimit) { in SkResourceCache() function in SkResourceCache 94 SkResourceCache::~SkResourceCache() { in ~SkResourceCache() [all …]
|
D | SkMaskCache.cpp | 11 ((localCache) ? localCache->localName(__VA_ARGS__) : SkResourceCache::globalName(__VA_ARGS__)) 21 struct RRectBlurKey : public SkResourceCache::Key { 39 struct RRectBlurRec : public SkResourceCache::Rec { 61 static bool Visitor(const SkResourceCache::Rec& baseRec, void* contextData) { in Visitor() 78 const SkRRect& rrect, SkMask* mask, SkResourceCache* localCache) { in FindAndRef() 92 SkResourceCache* localCache) { in Add() 102 struct RectsBlurKey : public SkResourceCache::Key { 133 struct RectsBlurRec : public SkResourceCache::Rec { 155 static bool Visitor(const SkResourceCache::Rec& baseRec, void* contextData) { in Visitor() 173 SkResourceCache* localCache) { in FindAndRef() [all …]
|
D | SkBitmapCache.cpp | 24 SkResourceCache::PostPurgeSharedID(SkMakeResourceCacheSharedIDForBitmap(bitmapGenID)); in SkNotifyBitmapGenIDIsStale() 93 struct BitmapKey : public SkResourceCache::Key { 124 class SkBitmapCache::Rec : public SkResourceCache::Rec { 242 static bool Finder(const SkResourceCache::Rec& baseRec, void* contextBitmap) { in Finder() 300 auto factory = SkResourceCache::GetDiscardableFactory(); in Alloc() 314 SkResourceCache::Add(rec.release(), bitmap); in Add() 319 return SkResourceCache::Find(BitmapKey(desc), SkBitmapCache::Rec::Finder, result); in Find() 326 ((localCache) ? localCache->localName(__VA_ARGS__) : SkResourceCache::globalName(__VA_ARGS__)) 331 struct MipMapKey : public SkResourceCache::Key { 349 struct MipMapRec : public SkResourceCache::Rec { [all …]
|
D | SkYUVPlanesCache.cpp | 13 ((localCache) ? localCache->localName(__VA_ARGS__) : SkResourceCache::globalName(__VA_ARGS__)) 23 struct YUVPlanesKey : public SkResourceCache::Key { 34 struct YUVPlanesRec : public SkResourceCache::Rec { 56 static bool Visitor(const SkResourceCache::Rec& baseRec, void* contextData) { in Visitor() 74 SkResourceCache* localCache) { in FindAndRef() 86 SkResourceCache* localCache) { in Add()
|
D | SkMaskCache.h | 28 SkResourceCache* localCache = nullptr); 31 SkResourceCache* localCache = nullptr); 38 SkResourceCache* localCache = nullptr); 41 SkResourceCache* localCache = nullptr);
|
D | SkResourceCache.h | 29 class SkResourceCache { 75 typedef SkResourceCache::Key Key; 109 friend class SkResourceCache; member 200 SkResourceCache(DiscardableFactory); 208 explicit SkResourceCache(size_t byteLimit); 209 ~SkResourceCache();
|
D | SkYUVPlanesCache.h | 15 class SkResourceCache; variable 36 SkResourceCache* localCache = nullptr); 42 SkResourceCache* localCache = nullptr);
|
D | SkBitmapCache.h | 15 class SkResourceCache; variable 68 SkResourceCache* localCache = nullptr); 70 SkResourceCache* localCache = nullptr);
|
/external/skqp/tests/ |
D | ImageCacheTest.cpp | 14 struct TestingKey : public SkResourceCache::Key { 21 struct TestingRec : public SkResourceCache::Rec { 32 static bool Visitor(const SkResourceCache::Rec& baseRec, void* context) { in Visitor() 45 static void test_cache(skiatest::Reporter* reporter, SkResourceCache& cache, bool testPurge) { in test_cache() 76 static void test_cache_purge_shared_id(skiatest::Reporter* reporter, SkResourceCache& cache) { in test_cache_purge_shared_id() 120 SkResourceCache cache(defLimit); in DEF_TEST() 126 SkResourceCache cache(pool_factory); in DEF_TEST() 130 SkResourceCache cache(SkDiscardableMemory::Create); in DEF_TEST() 134 SkResourceCache cache(defLimit); in DEF_TEST() 141 SkResourceCache cache(4096); in DEF_TEST()
|
D | SkResourceCacheTest.cpp | 40 static void test_mipmapcache(skiatest::Reporter* reporter, SkResourceCache* cache) { in test_mipmapcache() 81 static void test_mipmap_notify(skiatest::Reporter* reporter, SkResourceCache* cache) { in test_mipmap_notify() 117 static void testBitmapCache_discarded_bitmap(skiatest::Reporter* reporter, SkResourceCache* cache, in testBitmapCache_discarded_bitmap() 118 SkResourceCache::DiscardableFactory factory) { in testBitmapCache_discarded_bitmap() 126 SkResourceCache cache(byteLimit); in DEF_TEST() 132 SkResourceCache::DiscardableFactory factory = pool_factory; in DEF_TEST() 133 SkResourceCache cache(factory); in DEF_TEST() 210 struct TestKey : SkResourceCache::Key { 218 struct TestRec : SkResourceCache::Rec { 240 static void test_duplicate_add(SkResourceCache* cache, skiatest::Reporter* reporter, in test_duplicate_add() [all …]
|
/external/skia/tests/ |
D | ImageCacheTest.cpp | 14 struct TestingKey : public SkResourceCache::Key { 21 struct TestingRec : public SkResourceCache::Rec { 32 static bool Visitor(const SkResourceCache::Rec& baseRec, void* context) { in Visitor() 45 static void test_cache(skiatest::Reporter* reporter, SkResourceCache& cache, bool testPurge) { in test_cache() 76 static void test_cache_purge_shared_id(skiatest::Reporter* reporter, SkResourceCache& cache) { in test_cache_purge_shared_id() 120 SkResourceCache cache(defLimit); in DEF_TEST() 126 SkResourceCache cache(pool_factory); in DEF_TEST() 130 SkResourceCache cache(SkDiscardableMemory::Create); in DEF_TEST() 134 SkResourceCache cache(defLimit); in DEF_TEST() 141 SkResourceCache cache(4096); in DEF_TEST()
|
D | SkResourceCacheTest.cpp | 40 static void test_mipmapcache(skiatest::Reporter* reporter, SkResourceCache* cache) { in test_mipmapcache() 81 static void test_mipmap_notify(skiatest::Reporter* reporter, SkResourceCache* cache) { in test_mipmap_notify() 117 static void testBitmapCache_discarded_bitmap(skiatest::Reporter* reporter, SkResourceCache* cache, in testBitmapCache_discarded_bitmap() 118 SkResourceCache::DiscardableFactory factory) { in testBitmapCache_discarded_bitmap() 126 SkResourceCache cache(byteLimit); in DEF_TEST() 132 SkResourceCache::DiscardableFactory factory = pool_factory; in DEF_TEST() 133 SkResourceCache cache(factory); in DEF_TEST() 210 struct TestKey : SkResourceCache::Key { 218 struct TestRec : SkResourceCache::Rec { 240 static void test_duplicate_add(SkResourceCache* cache, skiatest::Reporter* reporter, in test_duplicate_add() [all …]
|
/external/skia/bench/ |
D | ImageCacheBench.cpp | 13 class TestKey : public SkResourceCache::Key { 21 struct TestRec : public SkResourceCache::Rec { 32 static bool Visitor(const SkResourceCache::Rec&, void*) { in Visitor() 39 SkResourceCache fCache;
|
/external/skqp/bench/ |
D | ImageCacheBench.cpp | 13 class TestKey : public SkResourceCache::Key { 21 struct TestRec : public SkResourceCache::Rec { 32 static bool Visitor(const SkResourceCache::Rec&, void*) { in Visitor() 39 SkResourceCache fCache;
|
/external/skqp/src/utils/ |
D | SkShadowUtils.cpp | 278 class CachedTessellationsRec : public SkResourceCache::Rec { 280 CachedTessellationsRec(const SkResourceCache::Key& key, in CachedTessellationsRec() 288 return *reinterpret_cast<SkResourceCache::Key*>(fKey.get()); in getKey() 337 bool FindVisitor(const SkResourceCache::Rec& baseRec, void* ctx) { in FindVisitor() 397 SkResourceCache::Key* key = nullptr; in draw_shadow() 401 keyStorage.reset(keyDataBytes + sizeof(SkResourceCache::Key)); in draw_shadow() 402 key = new (keyStorage.begin()) SkResourceCache::Key(); in draw_shadow() 405 SkResourceCache::Find(*key, FindVisitor<FACTORY>, &context); in draw_shadow() 428 SkResourceCache::Add(rec); in draw_shadow()
|
/external/skqp/src/ports/ |
D | SkFontMgr_FontConfigInterface.cpp | 69 struct Request : public SkResourceCache::Key { 76 SkASSERT(SkTAddOffset<char>(this, sizeof(SkResourceCache::Key) + keySize) == content); in Request() 104 struct Result : public SkResourceCache::Rec { 120 SkResourceCache fCachedResults; 132 fCachedResults.find(*request, [](const SkResourceCache::Rec& rec, void* context) -> bool { in findAndRef()
|
/external/skia/src/ports/ |
D | SkFontMgr_FontConfigInterface.cpp | 69 struct Request : public SkResourceCache::Key { 76 SkASSERT(SkTAddOffset<char>(this, sizeof(SkResourceCache::Key) + keySize) == content); in Request() 104 struct Result : public SkResourceCache::Rec { 120 SkResourceCache fCachedResults; 132 fCachedResults.find(*request, [](const SkResourceCache::Rec& rec, void* context) -> bool { in findAndRef()
|