/third_party/skia/src/core/ |
D | SkCachedData.cpp | 12 SkCachedData::SkCachedData(void* data, size_t size) in SkCachedData() function in SkCachedData 23 SkCachedData::SkCachedData(size_t size, SkDiscardableMemory* dm) in SkCachedData() function in SkCachedData 34 SkCachedData::~SkCachedData() { in ~SkCachedData() 45 class SkCachedData::AutoMutexWritable { 47 AutoMutexWritable(const SkCachedData* cd) : fCD(const_cast<SkCachedData*>(cd)) { in AutoMutexWritable() 56 SkCachedData* get() { return fCD; } in get() 57 SkCachedData* operator->() { return fCD; } in operator ->() 60 SkCachedData* fCD; 63 void SkCachedData::internalRef(bool fromCache) const { in internalRef() 67 void SkCachedData::internalUnref(bool fromCache) const { in internalUnref() [all …]
|
D | SkMaskCache.cpp | 15 SkCachedData* fData; 38 RRectBlurRec(RRectBlurKey key, const SkMask& mask, SkCachedData* data) in RRectBlurRec() 63 SkCachedData* tmpData = rec.fValue.fData; in Visitor() 75 SkCachedData* SkMaskCache::FindAndRef(SkScalar sigma, SkBlurStyle style, in FindAndRef() 89 const SkRRect& rrect, const SkMask& mask, SkCachedData* data, in Add() 129 RectsBlurRec(RectsBlurKey key, const SkMask& mask, SkCachedData* data) in RectsBlurRec() 154 SkCachedData* tmpData = rec.fValue.fData; in Visitor() 166 SkCachedData* SkMaskCache::FindAndRef(SkScalar sigma, SkBlurStyle style, in FindAndRef() 181 const SkRect rects[], int count, const SkMask& mask, SkCachedData* data, in Add()
|
D | SkYUVPlanesCache.cpp | 23 SkCachedData* fData; 38 YUVPlanesRec(YUVPlanesKey key, SkCachedData* data, const SkYUVAPixmaps& pixmaps) in YUVPlanesRec() 63 SkCachedData* tmpData = rec.fValue.fData; in Visitor() 76 SkCachedData* SkYUVPlanesCache::FindAndRef(uint32_t genID, in FindAndRef() 89 void SkYUVPlanesCache::Add(uint32_t genID, SkCachedData* data, const SkYUVAPixmaps& pixmaps, in Add()
|
D | SkMaskCache.h | 26 static SkCachedData* FindAndRef(SkScalar sigma, SkBlurStyle style, 29 static SkCachedData* FindAndRef(SkScalar sigma, SkBlurStyle style, 37 const SkRRect& rrect, const SkMask& mask, SkCachedData* data, 40 const SkRect rects[], int count, const SkMask& mask, SkCachedData* data,
|
D | SkCachedData.h | 17 class SkCachedData : ::SkNoncopyable { 19 SkCachedData(void* mallocData, size_t size); 20 SkCachedData(size_t size, SkDiscardableMemory*); 21 virtual ~SkCachedData();
|
D | SkYUVPlanesCache.h | 13 class SkCachedData; variable 26 static SkCachedData* FindAndRef(uint32_t genID, 34 static void Add(uint32_t genID, SkCachedData* data, const SkYUVAPixmaps& pixmaps,
|
D | SkResourceCache.h | 15 class SkCachedData; variable 182 static SkCachedData* NewCachedData(size_t bytes); 253 SkCachedData* newCachedData(size_t bytes);
|
D | SkMipmap.h | 32 class SkMipmap : public SkCachedData { 94 using INHERITED = SkCachedData;
|
D | SkMaskFilterBase.h | 38 class SkCachedData; variable 192 SkCachedData* fCache;
|
D | SkResourceCache.cpp | 295 SkCachedData* SkResourceCache::newCachedData(size_t bytes) { in newCachedData() 300 return dm ? new SkCachedData(bytes, dm) : nullptr; in newCachedData() 302 return new SkCachedData(sk_malloc_throw(bytes), bytes); in newCachedData() 495 SkCachedData* SkResourceCache::NewCachedData(size_t bytes) { in NewCachedData()
|
D | SkBlurMF.cpp | 247 static SkCachedData* copy_mask_to_cacheddata(SkMask* mask) { in copy_mask_to_cacheddata() 249 SkCachedData* data = SkResourceCache::NewCachedData(size); in copy_mask_to_cacheddata() 258 static SkCachedData* find_cached_rrect(SkMask* mask, SkScalar sigma, SkBlurStyle style, in find_cached_rrect() 263 static SkCachedData* add_cached_rrect(SkMask* mask, SkScalar sigma, SkBlurStyle style, in add_cached_rrect() 265 SkCachedData* cache = copy_mask_to_cacheddata(mask); in add_cached_rrect() 272 static SkCachedData* find_cached_rects(SkMask* mask, SkScalar sigma, SkBlurStyle style, in find_cached_rects() 277 static SkCachedData* add_cached_rects(SkMask* mask, SkScalar sigma, SkBlurStyle style, in add_cached_rects() 279 SkCachedData* cache = copy_mask_to_cacheddata(mask); in add_cached_rects() 389 SkCachedData* cache = find_cached_rrect(&patch->fMask, sigma, fBlurStyle, smallRR); in filterRRectToNine() 523 SkCachedData* cache = find_cached_rects(&patch->fMask, sigma, fBlurStyle, smallR, count); in filterRectsToNine()
|
D | BUILD.bazel | 61 "SkCachedData.cpp", 62 "SkCachedData.h",
|
/third_party/skia/tests/ |
D | CachedDataTest.cpp | 29 static void check_data(skiatest::Reporter* reporter, SkCachedData* data, in check_data() 36 static SkCachedData* make_data(size_t size, SkDiscardableMemoryPool* pool) { in make_data() 41 return new SkCachedData(size, dm); in make_data() 43 return new SkCachedData(sk_malloc_throw(size), size); in make_data() 48 static SkCachedData* test_locking(skiatest::Reporter* reporter, in test_locking() 50 SkCachedData* data = make_data(size, pool); in test_locking() 88 SkCachedData* data = test_locking(reporter, size, useDiscardable ? pool.get() : nullptr); in DEF_TEST()
|
D | MaskCacheTest.cpp | 23 static void check_data(skiatest::Reporter* reporter, SkCachedData* data, in check_data() 41 SkCachedData* data = SkMaskCache::FindAndRef(sigma, style, rrect, &mask, &cache); in DEF_TEST() 78 SkCachedData* data = SkMaskCache::FindAndRef(sigma, style, rects, 1, &mask, &cache); in DEF_TEST()
|
D | YUVCacheTest.cpp | 25 static void check_data(skiatest::Reporter* reporter, SkCachedData* data, in check_data() 46 SkCachedData* data = SkYUVPlanesCache::FindAndRef(genID, &yuvaPixmaps, &cache); in DEF_TEST()
|
D | SkResourceCacheTest.cpp | 32 static void check_data(skiatest::Reporter* reporter, const SkCachedData* data, in check_data()
|
/third_party/skia/src/image/ |
D | SkImage_Lazy.cpp | 285 sk_sp<SkCachedData> dataStorage = this->getPlanes(supportedDataTypes, &yuvaPixmaps); in textureProxyViewFromPlanes() 307 auto cachedData = static_cast<SkCachedData*>(data); in textureProxyViewFromPlanes() 375 sk_sp<SkCachedData> SkImage_Lazy::getPlanes( in getPlanes() 380 sk_sp<SkCachedData> data(SkYUVPlanesCache::FindAndRef(generator->uniqueID(), yuvaPixmaps)); in getPlanes()
|
D | SkImage_Lazy.h | 82 sk_sp<SkCachedData> getPlanes(const SkYUVAPixmapInfo::SupportedDataTypes& supportedDataTypes,
|
D | SkImage_Base.h | 30 class SkCachedData; variable
|
/third_party/skia/gn/ |
D | core.gni | 147 "$_src/core/SkCachedData.cpp",
|