Home
last modified time | relevance | path

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

/external/skia/src/core/
DSkCachedData.cpp30 SkCachedData::SkCachedData(void* data, size_t size) in SkCachedData() function in SkCachedData
42 SkCachedData::SkCachedData(size_t size, SkDiscardableMemory* dm) in SkCachedData() function in SkCachedData
54 SkCachedData::~SkCachedData() { in ~SkCachedData()
66 class SkCachedData::AutoMutexWritable {
68 AutoMutexWritable(const SkCachedData* cd) : fCD(const_cast<SkCachedData*>(cd)) { in AutoMutexWritable()
77 SkCachedData* get() { return fCD; } in get()
78 SkCachedData* operator->() { return fCD; } in operator ->()
81 SkCachedData* fCD;
84 void SkCachedData::internalRef(bool fromCache) const { in internalRef()
88 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()
135 RectsBlurRec(RectsBlurKey key, const SkMask& mask, SkCachedData* data) in RectsBlurRec()
160 SkCachedData* tmpData = rec.fValue.fData; in Visitor()
172 SkCachedData* SkMaskCache::FindAndRef(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, in FindAndRef()
187 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.h40 static SkCachedData* FindAndRef(uint32_t genID, Info* info,
46 static void Add(uint32_t genID, SkCachedData* data, Info* info,
DSkMipMap.h21 class SkMipMap : public SkCachedData {
54 typedef SkCachedData INHERITED;
DSkResourceCache.h15 class SkCachedData; variable
176 static SkCachedData* NewCachedData(size_t bytes);
248 SkCachedData* newCachedData(size_t bytes);
DSkResourceCache.cpp385 SkCachedData* SkResourceCache::newCachedData(size_t bytes) { in newCachedData()
390 return dm ? new SkCachedData(bytes, dm) : nullptr; in newCachedData()
392 return new SkCachedData(sk_malloc_throw(bytes), bytes); in newCachedData()
597 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()
45 SkCachedData* data = SkYUVPlanesCache::FindAndRef(genID, &yuvInfo, &cache); in DEF_TEST()
DSkResourceCacheTest.cpp84 static void check_data(skiatest::Reporter* reporter, const SkCachedData* data, in check_data()
/external/skia/include/core/
DSkMaskFilter.h25 class SkCachedData; variable
193 SkCachedData* fCache;
/external/skia/src/effects/
DSkBlurMaskFilter.cpp268 static SkCachedData* copy_mask_to_cacheddata(SkMask* mask) { in copy_mask_to_cacheddata()
270 SkCachedData* data = SkResourceCache::NewCachedData(size); in copy_mask_to_cacheddata()
279 static SkCachedData* find_cached_rrect(SkMask* mask, SkScalar sigma, SkBlurStyle style, in find_cached_rrect()
284 static SkCachedData* add_cached_rrect(SkMask* mask, SkScalar sigma, SkBlurStyle style, in add_cached_rrect()
286 SkCachedData* cache = copy_mask_to_cacheddata(mask); in add_cached_rrect()
293 static SkCachedData* find_cached_rects(SkMask* mask, SkScalar sigma, SkBlurStyle style, in find_cached_rects()
298 static SkCachedData* add_cached_rects(SkMask* mask, SkScalar sigma, SkBlurStyle style, in add_cached_rects()
300 SkCachedData* cache = copy_mask_to_cacheddata(mask); in add_cached_rects()
414 SkCachedData* cache = find_cached_rrect(&patch->fMask, sigma, fBlurStyle, in filterRRectToNine()
547 SkCachedData* cache = find_cached_rects(&patch->fMask, sigma, fBlurStyle, in filterRectsToNine()
/external/skia/src/gpu/
DGrYUVProvider.cpp30 SkAutoTUnref<SkCachedData> fCachedData;
/external/skia/gyp/
Dcore.gypi65 '<(skia_src_path)/core/SkCachedData.cpp',
/external/skia/
DAndroid.mk123 src/core/SkCachedData.cpp \