Home
last modified time | relevance | path

Searched refs:SkDiscardableMemory (Results 1 – 19 of 19) sorted by relevance

/external/skia/src/core/
DSkDiscardableMemory.h18 class SK_API SkDiscardableMemory {
24 static SkDiscardableMemory* Create(size_t bytes);
32 virtual SkDiscardableMemory* create(size_t bytes) = 0;
39 virtual ~SkDiscardableMemory() {} in ~SkDiscardableMemory()
DSkMipMap.h15 class SkDiscardableMemory; variable
17 typedef SkDiscardableMemory* (*SkDiscardableFactoryProc)(size_t bytes);
43 SkMipMap(size_t size, SkDiscardableMemory* dm) : INHERITED(size, dm) {} in SkMipMap()
DSkCachedData.h13 class SkDiscardableMemory; variable
18 SkCachedData(size_t size, SkDiscardableMemory*);
46 SkDiscardableMemory* fDM;
DSkResourceCache.cpp79 SkOneShotDiscardablePixelRef(const SkImageInfo&, SkDiscardableMemory*, size_t rowBytes);
88 SkDiscardableMemory* fDM;
96 SkDiscardableMemory* dm, in SkOneShotDiscardablePixelRef()
166 SkDiscardableMemory* dm = fFactory(size); in allocPixelRef()
362 SkDiscardableMemory* dm = fDiscardableFactory(bytes); in newCachedData()
538 gResourceCache = SkNEW_ARGS(SkResourceCache, (SkDiscardableMemory::Create)); in get_cache()
DSkResourceCache.h16 class SkDiscardableMemory; variable
117 typedef SkDiscardableMemory* (*DiscardableFactory)(size_t bytes);
DSkImageGeneratorPriv.h37 SkDiscardableMemory::Factory* factory);
DSkCachedData.cpp43 SkCachedData::SkCachedData(size_t size, SkDiscardableMemory* dm) in SkCachedData()
DSkMipMap.cpp244 SkDiscardableMemory* dm = fact(storageSize); in Build()
/external/skia/src/lazy/
DSkDiscardablePixelRef.h38 SkDiscardableMemory::Factory* const fDMFactory;
43 SkDiscardableMemory* fDiscardableMemory;
50 SkDiscardableMemory::Factory* factory);
65 SkDiscardableMemory::Factory*);
DSkDiscardableMemoryPool.cpp35 SkDiscardableMemory* create(size_t bytes) override;
71 typedef SkDiscardableMemory::Factory INHERITED;
78 class PoolDiscardableMemory : public SkDiscardableMemory {
176 SkDiscardableMemory* DiscardableMemoryPool::create(size_t bytes) { in create()
DSkDiscardablePixelRef.cpp15 SkDiscardableMemory::Factory* fact) in SkDiscardablePixelRef()
61 fDiscardableMemory = SkDiscardableMemory::Create(size); in onNewLockPixels()
111 SkDiscardableMemory::Factory* factory) { in SkInstallDiscardablePixelRef()
DSkDiscardableMemoryPool.h28 class SkDiscardableMemoryPool : public SkDiscardableMemory::Factory {
/external/skia/src/ports/
DSkDiscardableMemory_none.cpp11 SkDiscardableMemory* SkDiscardableMemory::Create(size_t bytes) { in Create()
/external/skia/tests/
DDiscardableMemoryTest.cpp15 SkAutoTDelete<SkDiscardableMemory> dm(SkDiscardableMemory::Create(len)); in DEF_TEST()
DDiscardableMemoryPoolTest.cpp17 SkAutoTDelete<SkDiscardableMemory> dm1(pool->create(100)); in DEF_TEST()
25 SkAutoTDelete<SkDiscardableMemory> dm2(pool->create(200)); in DEF_TEST()
DImageCacheTest.cpp109 static SkDiscardableMemory* pool_factory(size_t bytes) { in pool_factory()
129 SkResourceCache cache(SkDiscardableMemory::Create); in DEF_TEST()
DCachedDataTest.cpp31 SkDiscardableMemory* dm = pool->create(size); in make_data()
DCachedDecodingPixelRefTest.cpp241 SkDiscardableMemory::Factory* factory) { in check_pixelref()
/external/skia/tools/
DLazyDecodeBitmap.cpp36 SkDiscardableMemory::Factory* pool = NULL; in LazyDecodeBitmap()