Searched refs:SkDiscardableMemory (Results 1 – 25 of 30) sorted by relevance
12
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()
13 class SkDiscardableMemory; variable34 typedef SkDiscardableMemory* (*DiscardableFactory)(size_t bytes);
37 SkDiscardableMemory::Factory* factory);
60 SkOneShotDiscardablePixelRef(const SkImageInfo&, SkDiscardableMemory*, size_t rowBytes);69 SkDiscardableMemory* fDM;77 SkDiscardableMemory* dm, in SkOneShotDiscardablePixelRef()147 SkDiscardableMemory* dm = fFactory(size); in allocPixelRef()411 gResourceCache = SkNEW_ARGS(SkResourceCache, (SkDiscardableMemory::Create)); in get_cache()
13 class SkDiscardableMemory; variable100 typedef SkDiscardableMemory* (*DiscardableFactory)(size_t bytes);
39 SkDiscardableMemory::Factory* const fDMFactory;44 SkDiscardableMemory* fDiscardableMemory;50 SkDiscardableMemory::Factory* factory);53 SkDiscardableMemory::Factory*);
15 SkDiscardableMemory::Factory* fact) in SkDiscardablePixelRef()56 fDiscardableMemory = SkDiscardableMemory::Create(size);100 SkDiscardableMemory::Factory* factory) {
34 virtual SkDiscardableMemory* create(size_t bytes) SK_OVERRIDE;70 typedef SkDiscardableMemory::Factory INHERITED;77 class PoolDiscardableMemory : public SkDiscardableMemory {175 SkDiscardableMemory* DiscardableMemoryPool::create(size_t bytes) { in create()
27 class SkDiscardableMemoryPool : public SkDiscardableMemory::Factory {
38 SkDiscardableMemory::Factory* const fDMFactory;43 SkDiscardableMemory* fDiscardableMemory;49 SkDiscardableMemory::Factory* factory);59 SkDiscardableMemory::Factory*);
35 virtual SkDiscardableMemory* create(size_t bytes) SK_OVERRIDE;71 typedef SkDiscardableMemory::Factory INHERITED;78 class PoolDiscardableMemory : public SkDiscardableMemory {176 SkDiscardableMemory* DiscardableMemoryPool::create(size_t bytes) { in create()
11 SkDiscardableMemory* SkDiscardableMemory::Create(size_t bytes) { in Create()
14 class SK_API SkDiscardableMemoryChrome : public SkDiscardableMemory {24 friend class SkDiscardableMemory;
36 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()
83 static SkDiscardableMemory* pool_factory(size_t bytes) { in pool_factory()103 SkScaledImageCache cache(SkDiscardableMemory::Create); in DEF_TEST()
78 static SkDiscardableMemory* pool_factory(size_t bytes) { in pool_factory()98 SkResourceCache cache(SkDiscardableMemory::Create); in DEF_TEST()