Home
last modified time | relevance | path

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

/external/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()
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,
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()
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);
DSkMaskFilterBase.h39 class SkCachedData; variable
196 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.cpp250 static SkCachedData* copy_mask_to_cacheddata(SkMask* mask) { in copy_mask_to_cacheddata()
252 SkCachedData* data = SkResourceCache::NewCachedData(size); in copy_mask_to_cacheddata()
261 static SkCachedData* find_cached_rrect(SkMask* mask, SkScalar sigma, SkBlurStyle style, in find_cached_rrect()
266 static SkCachedData* add_cached_rrect(SkMask* mask, SkScalar sigma, SkBlurStyle style, in add_cached_rrect()
268 SkCachedData* cache = copy_mask_to_cacheddata(mask); in add_cached_rrect()
275 static SkCachedData* find_cached_rects(SkMask* mask, SkScalar sigma, SkBlurStyle style, in find_cached_rects()
280 static SkCachedData* add_cached_rects(SkMask* mask, SkScalar sigma, SkBlurStyle style, in add_cached_rects()
282 SkCachedData* cache = copy_mask_to_cacheddata(mask); in add_cached_rects()
392 SkCachedData* cache = find_cached_rrect(&patch->fMask, sigma, fBlurStyle, smallRR); in filterRRectToNine()
526 SkCachedData* cache = find_cached_rects(&patch->fMask, sigma, fBlurStyle, smallR, count); in filterRectsToNine()
DSkMipmap.h32 class SkMipmap : public SkCachedData {
DBUILD.bazel69 "SkCachedData.cpp",
70 "SkCachedData.h",
DSkMipmap.cpp386 SkMipmap::SkMipmap(void* malloc, size_t size) : SkCachedData(malloc, size) {} in SkMipmap()
387 SkMipmap::SkMipmap(size_t size, SkDiscardableMemory* dm) : SkCachedData(size, dm) {} in SkMipmap()
/external/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.cpp31 static void check_data(skiatest::Reporter* reporter, SkCachedData* data, in check_data()
49 SkCachedData* data = SkMaskCache::FindAndRef(sigma, style, rrect, &mask, &cache); in DEF_TEST()
86 SkCachedData* data = SkMaskCache::FindAndRef(sigma, style, rects, 1, &mask, &cache); in DEF_TEST()
DYUVCacheTest.cpp30 static void check_data(skiatest::Reporter* reporter, SkCachedData* data, in check_data()
51 SkCachedData* data = SkYUVPlanesCache::FindAndRef(genID, &yuvaPixmaps, &cache); in DEF_TEST()
DSkResourceCacheTest.cpp47 static void check_data(skiatest::Reporter* reporter, const SkCachedData* data, in check_data()
/external/skia/src/image/
DSkImage_Lazy.h37 class SkCachedData; variable
124 sk_sp<SkCachedData> getPlanes(const SkYUVAPixmapInfo::SupportedDataTypes& supportedDataTypes,
DSkImage_Lazy.cpp367 sk_sp<SkCachedData> dataStorage = this->getPlanes(supportedDataTypes, &yuvaPixmaps); in textureProxyViewFromPlanes()
389 auto cachedData = static_cast<SkCachedData*>(data); in textureProxyViewFromPlanes()
458 sk_sp<SkCachedData> SkImage_Lazy::getPlanes( in getPlanes()
463 sk_sp<SkCachedData> data(SkYUVPlanesCache::FindAndRef(generator->uniqueID(), yuvaPixmaps)); in getPlanes()
/external/skia/gn/
Dcore.gni282 "$_src/core/SkCachedData.cpp",
283 "$_src/core/SkCachedData.h",
/external/skia/
Dpublic.bzl393 "src/core/SkCachedData.cpp",
394 "src/core/SkCachedData.h",
DAndroid.bp238 "src/core/SkCachedData.cpp",
1038 "src/core/SkCachedData.cpp",
3814 "src/core/SkCachedData.cpp",