Home
last modified time | relevance | path

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

/external/skia/src/core/
DSkCachedData.cpp31 SkCachedData::SkCachedData(void* data, size_t size) in SkCachedData() function in SkCachedData
43 SkCachedData::SkCachedData(size_t size, SkDiscardableMemory* dm) in SkCachedData() function in SkCachedData
55 SkCachedData::~SkCachedData() { in ~SkCachedData()
67 class SkCachedData::AutoMutexWritable {
69 AutoMutexWritable(const SkCachedData* cd) : fCD(const_cast<SkCachedData*>(cd)) { in AutoMutexWritable()
78 SkCachedData* get() { return fCD; } in get()
79 SkCachedData* operator->() { return fCD; } in operator ->()
82 SkCachedData* fCD;
85 void SkCachedData::internalRef(bool fromCache) const { in internalRef()
89 void SkCachedData::internalUnref(bool fromCache) const { in internalUnref()
[all …]
DSkMaskCache.cpp15 SkCachedData* fData;
40 RRectBlurRec(RRectBlurKey key, const SkMask& mask, SkCachedData* data) in RRectBlurRec()
65 SkCachedData* tmpData = rec.fValue.fData; in Visitor()
77 SkCachedData* SkMaskCache::FindAndRef(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, in FindAndRef()
91 const SkRRect& rrect, const SkMask& mask, SkCachedData* data, in Add()
134 RectsBlurRec(RectsBlurKey key, const SkMask& mask, SkCachedData* data) in RectsBlurRec()
159 SkCachedData* tmpData = rec.fValue.fData; in Visitor()
171 SkCachedData* SkMaskCache::FindAndRef(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, in FindAndRef()
186 const SkRect rects[], int count, const SkMask& mask, SkCachedData* data, in Add()
DSkMaskCache.h26 static SkCachedData* FindAndRef(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality,
29 static SkCachedData* FindAndRef(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality,
37 const SkRRect& rrect, const SkMask& mask, SkCachedData* data,
40 const SkRect rects[], int count, const SkMask& mask, SkCachedData* data,
DSkYUVPlanesCache.cpp20 SkCachedData* fData;
35 YUVPlanesRec(YUVPlanesKey key, SkCachedData* data, SkYUVPlanesCache::Info* info) in YUVPlanesRec()
60 SkCachedData* tmpData = rec.fValue.fData; in Visitor()
73 SkCachedData* SkYUVPlanesCache::FindAndRef(uint32_t genID, Info* info, in FindAndRef()
85 void SkYUVPlanesCache::Add(uint32_t genID, SkCachedData* data, Info* info, in Add()
DSkCachedData.h16 class SkCachedData : ::SkNoncopyable {
18 SkCachedData(void* mallocData, size_t size);
19 SkCachedData(size_t size, SkDiscardableMemory*);
20 virtual ~SkCachedData();
DSkYUVPlanesCache.h35 static SkCachedData* FindAndRef(uint32_t genID, Info* info,
41 static void Add(uint32_t genID, SkCachedData* data, Info* info,
DSkResourceCache.h15 class SkCachedData; variable
182 static SkCachedData* NewCachedData(size_t bytes);
253 SkCachedData* newCachedData(size_t bytes);
DSkMipMap.h29 class SkMipMap : public SkCachedData {
82 typedef SkCachedData INHERITED;
DSkResourceCache.cpp283 SkCachedData* SkResourceCache::newCachedData(size_t bytes) { in newCachedData()
288 return dm ? new SkCachedData(bytes, dm) : nullptr; in newCachedData()
290 return new SkCachedData(sk_malloc_throw(bytes), bytes); in newCachedData()
480 SkCachedData* SkResourceCache::NewCachedData(size_t bytes) { in NewCachedData()
/external/skia/tests/
DCachedDataTest.cpp22 static void check_data(skiatest::Reporter* reporter, SkCachedData* data, in check_data()
29 static SkCachedData* make_data(size_t size, SkDiscardableMemoryPool* pool) { in make_data()
34 return new SkCachedData(size, dm); in make_data()
36 return new SkCachedData(sk_malloc_throw(size), size); in make_data()
41 static SkCachedData* test_locking(skiatest::Reporter* reporter, in test_locking()
43 SkCachedData* data = make_data(size, pool); in test_locking()
81 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()
42 SkCachedData* data = SkMaskCache::FindAndRef(sigma, style, quality, rrect, &mask, &cache); in DEF_TEST()
80 SkCachedData* data = SkMaskCache::FindAndRef(sigma, style, quality, rects, 1, &mask, &cache); in DEF_TEST()
DYUVCacheTest.cpp23 static void check_data(skiatest::Reporter* reporter, SkCachedData* data, in check_data()
44 SkCachedData* data = SkYUVPlanesCache::FindAndRef(genID, &yuvInfo, &cache); in DEF_TEST()
DSkResourceCacheTest.cpp32 static void check_data(skiatest::Reporter* reporter, const SkCachedData* data, in check_data()
/external/skia/include/core/
DSkMaskFilter.h30 class SkCachedData; variable
196 SkCachedData* fCache;
/external/skia/src/effects/
DSkBlurMaskFilter.cpp417 static SkCachedData* copy_mask_to_cacheddata(SkMask* mask) { in copy_mask_to_cacheddata()
419 SkCachedData* data = SkResourceCache::NewCachedData(size); in copy_mask_to_cacheddata()
428 static SkCachedData* find_cached_rrect(SkMask* mask, SkScalar sigma, SkBlurStyle style, in find_cached_rrect()
433 static SkCachedData* add_cached_rrect(SkMask* mask, SkScalar sigma, SkBlurStyle style, in add_cached_rrect()
435 SkCachedData* cache = copy_mask_to_cacheddata(mask); in add_cached_rrect()
442 static SkCachedData* find_cached_rects(SkMask* mask, SkScalar sigma, SkBlurStyle style, in find_cached_rects()
447 static SkCachedData* add_cached_rects(SkMask* mask, SkScalar sigma, SkBlurStyle style, in add_cached_rects()
449 SkCachedData* cache = copy_mask_to_cacheddata(mask); in add_cached_rects()
564 SkCachedData* cache = find_cached_rrect(&patch->fMask, sigma, fBlurStyle, in filterRRectToNine()
698 SkCachedData* cache = find_cached_rects(&patch->fMask, sigma, fBlurStyle, in filterRectsToNine()
/external/skia/src/gpu/
DGrYUVProvider.cpp35 sk_sp<SkCachedData> fCachedData;
/external/skia/gn/
Dcore.gni63 "$_src/core/SkCachedData.cpp",
/external/skia/
DAndroid.bp132 "src/core/SkCachedData.cpp",