Home
last modified time | relevance | path

Searched refs:SkCachedData (Results 1 – 20 of 20) sorted by relevance

/third_party/skia/src/core/
DSkCachedData.cpp12 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 …]
DSkMaskCache.cpp15 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()
DSkYUVPlanesCache.cpp23 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()
DSkMaskCache.h26 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,
DSkCachedData.h17 class SkCachedData : ::SkNoncopyable {
19 SkCachedData(void* mallocData, size_t size);
20 SkCachedData(size_t size, SkDiscardableMemory*);
21 virtual ~SkCachedData();
DSkYUVPlanesCache.h13 class SkCachedData; variable
26 static SkCachedData* FindAndRef(uint32_t genID,
34 static void Add(uint32_t genID, SkCachedData* data, const SkYUVAPixmaps& pixmaps,
DSkResourceCache.h15 class SkCachedData; variable
182 static SkCachedData* NewCachedData(size_t bytes);
253 SkCachedData* newCachedData(size_t bytes);
DSkMipmap.h32 class SkMipmap : public SkCachedData {
94 using INHERITED = SkCachedData;
DSkMaskFilterBase.h38 class SkCachedData; variable
192 SkCachedData* fCache;
DSkResourceCache.cpp295 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()
DSkBlurMF.cpp247 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()
DBUILD.bazel61 "SkCachedData.cpp",
62 "SkCachedData.h",
/third_party/skia/tests/
DCachedDataTest.cpp29 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()
DMaskCacheTest.cpp23 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()
DYUVCacheTest.cpp25 static void check_data(skiatest::Reporter* reporter, SkCachedData* data, in check_data()
46 SkCachedData* data = SkYUVPlanesCache::FindAndRef(genID, &yuvaPixmaps, &cache); in DEF_TEST()
DSkResourceCacheTest.cpp32 static void check_data(skiatest::Reporter* reporter, const SkCachedData* data, in check_data()
/third_party/skia/src/image/
DSkImage_Lazy.cpp285 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()
DSkImage_Lazy.h82 sk_sp<SkCachedData> getPlanes(const SkYUVAPixmapInfo::SupportedDataTypes& supportedDataTypes,
DSkImage_Base.h30 class SkCachedData; variable
/third_party/skia/gn/
Dcore.gni147 "$_src/core/SkCachedData.cpp",