Searched refs:SkDiscardableMemory (Results 1 – 19 of 19) sorted by relevance
18 class SK_API SkDiscardableMemory {24 static SkDiscardableMemory* Create(size_t bytes);32 virtual SkDiscardableMemory* create(size_t bytes) = 0;39 virtual ~SkDiscardableMemory() {} in ~SkDiscardableMemory()
15 class SkDiscardableMemory; variable17 typedef SkDiscardableMemory* (*SkDiscardableFactoryProc)(size_t bytes);43 SkMipMap(size_t size, SkDiscardableMemory* dm) : INHERITED(size, dm) {} in SkMipMap()
13 class SkDiscardableMemory; variable18 SkCachedData(size_t size, SkDiscardableMemory*);46 SkDiscardableMemory* fDM;
79 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()
16 class SkDiscardableMemory; variable117 typedef SkDiscardableMemory* (*DiscardableFactory)(size_t bytes);
37 SkDiscardableMemory::Factory* factory);
43 SkCachedData::SkCachedData(size_t size, SkDiscardableMemory* dm) in SkCachedData()
244 SkDiscardableMemory* dm = fact(storageSize); in Build()
38 SkDiscardableMemory::Factory* const fDMFactory;43 SkDiscardableMemory* fDiscardableMemory;50 SkDiscardableMemory::Factory* factory);65 SkDiscardableMemory::Factory*);
35 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()
15 SkDiscardableMemory::Factory* fact) in SkDiscardablePixelRef()61 fDiscardableMemory = SkDiscardableMemory::Create(size); in onNewLockPixels()111 SkDiscardableMemory::Factory* factory) { in SkInstallDiscardablePixelRef()
28 class SkDiscardableMemoryPool : public SkDiscardableMemory::Factory {
11 SkDiscardableMemory* SkDiscardableMemory::Create(size_t bytes) { in Create()
15 SkAutoTDelete<SkDiscardableMemory> dm(SkDiscardableMemory::Create(len)); in DEF_TEST()
17 SkAutoTDelete<SkDiscardableMemory> dm1(pool->create(100)); in DEF_TEST()25 SkAutoTDelete<SkDiscardableMemory> dm2(pool->create(200)); in DEF_TEST()
109 static SkDiscardableMemory* pool_factory(size_t bytes) { in pool_factory()129 SkResourceCache cache(SkDiscardableMemory::Create); in DEF_TEST()
31 SkDiscardableMemory* dm = pool->create(size); in make_data()
241 SkDiscardableMemory::Factory* factory) { in check_pixelref()
36 SkDiscardableMemory::Factory* pool = NULL; in LazyDecodeBitmap()