/external/skia/src/gpu/ |
D | GrResourceCache.h | 131 GrGpuResource* findAndRefScratchResource(const GrScratchKey& scratchKey, 145 GrGpuResource* findAndRefUniqueResource(const GrUniqueKey& key) { in findAndRefUniqueResource() 146 GrGpuResource* resource = fUniqueHash.find(key); in findAndRefUniqueResource() 210 void update(GrGpuResource* resource) { in update() 246 void insertResource(GrGpuResource*); 247 void removeResource(GrGpuResource*); 248 void notifyCntReachedZero(GrGpuResource*, uint32_t flags); 249 void didChangeGpuMemorySize(const GrGpuResource*, size_t oldSize); 250 void changeUniqueKey(GrGpuResource*, const GrUniqueKey&); 251 void removeUniqueKey(GrGpuResource*); [all …]
|
D | GrGpuResource.cpp | 23 GrGpuResource::GrGpuResource(GrGpu* gpu, LifeCycle lifeCycle) in GrGpuResource() function in GrGpuResource 31 void GrGpuResource::registerWithCache() { in registerWithCache() 35 GrGpuResource::~GrGpuResource() { in ~GrGpuResource() 40 void GrGpuResource::release() { in release() 48 void GrGpuResource::abandon() { in abandon() 59 void GrGpuResource::dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const { in dumpMemoryStatistics() 76 const SkData* GrGpuResource::setCustomData(const SkData* data) { in setCustomData() 82 const GrContext* GrGpuResource::getContext() const { in getContext() 90 GrContext* GrGpuResource::getContext() { in getContext() 98 void GrGpuResource::didChangeGpuMemorySize() const { in didChangeGpuMemorySize() [all …]
|
D | GrGpuResourcePriv.h | 18 class GrGpuResource::ResourcePriv { 48 bool ret = GrGpuResource::kCached_LifeCycle == fResource->fLifeCycle; in isBudgeted() 67 ResourcePriv(GrGpuResource* resource) : fResource(resource) { } in ResourcePriv() 75 GrGpuResource* fResource; 77 friend class GrGpuResource; // to construct/copy this type. variable 80 inline GrGpuResource::ResourcePriv GrGpuResource::resourcePriv() { return ResourcePriv(this); } in resourcePriv() 82 inline const GrGpuResource::ResourcePriv GrGpuResource::resourcePriv() const { in resourcePriv() 83 return ResourcePriv(const_cast<GrGpuResource*>(this)); in resourcePriv()
|
D | GrGpuResourceCacheAccess.h | 22 class GrGpuResource::CacheAccess { 42 bool isBorrowed() const { return GrGpuResource::kBorrowed_LifeCycle == fResource->fLifeCycle; } in isBorrowed() 48 bool isAdopted() const { return GrGpuResource::kAdopted_LifeCycle == fResource->fLifeCycle; } in isAdopted() 81 CacheAccess(GrGpuResource* resource) : fResource(resource) {} in CacheAccess() 89 GrGpuResource* fResource; 91 friend class GrGpuResource; // to construct/copy this type. variable 96 inline GrGpuResource::CacheAccess GrGpuResource::cacheAccess() { return CacheAccess(this); } in cacheAccess() 98 inline const GrGpuResource::CacheAccess GrGpuResource::cacheAccess() const { in cacheAccess() 99 return CacheAccess(const_cast<GrGpuResource*>(this)); in cacheAccess()
|
D | GrResourceCache.cpp | 120 void GrResourceCache::insertResource(GrGpuResource* resource) { in insertResource() 157 void GrResourceCache::removeResource(GrGpuResource* resource) { in removeResource() 190 GrGpuResource* back = *(fNonpurgeableResources.end() - 1); in abandonAll() 196 GrGpuResource* top = fPurgeableQueue.peek(); in abandonAll() 214 GrGpuResource* back = *(fNonpurgeableResources.end() - 1); in releaseAll() 220 GrGpuResource* top = fPurgeableQueue.peek(); in releaseAll() 238 bool operator()(const GrGpuResource* resource) const { in operator ()() 249 GrGpuResource* GrResourceCache::findAndRefScratchResource(const GrScratchKey& scratchKey, in findAndRefScratchResource() 254 GrGpuResource* resource; in findAndRefScratchResource() 281 void GrResourceCache::willRemoveScratchKey(const GrGpuResource* resource) { in willRemoveScratchKey() [all …]
|
D | GrStencilAttachment.h | 19 class GrStencilAttachment : public GrGpuResource { 58 : GrGpuResource(gpu, lifeCycle) in GrStencilAttachment() 78 typedef GrGpuResource INHERITED;
|
D | GrTextureProvider.cpp | 106 GrGpuResource* resource = fCache->findAndRefScratchResource(key, in refScratchTexture() 141 void GrTextureProvider::assignUniqueKeyToResource(const GrUniqueKey& key, GrGpuResource* resource) { in assignUniqueKeyToResource() 154 GrGpuResource* GrTextureProvider::findAndRefResourceByUniqueKey(const GrUniqueKey& key) { in findAndRefResourceByUniqueKey() 161 GrGpuResource* resource = this->findAndRefResourceByUniqueKey(key); in findAndRefTextureByUniqueKey()
|
D | GrTransferBuffer.h | 15 class GrTransferBuffer : public GrGpuResource { 73 typedef GrGpuResource INHERITED;
|
D | GrPath.h | 17 class GrPath : public GrGpuResource { 53 typedef GrGpuResource INHERITED;
|
D | GrGeometryBuffer.h | 20 class GrGeometryBuffer : public GrGpuResource { 121 typedef GrGpuResource INHERITED;
|
D | GrGpuResourceRef.cpp | 16 GrGpuResourceRef::GrGpuResourceRef(GrGpuResource* resource, GrIOType ioType) { in GrGpuResourceRef() 54 void GrGpuResourceRef::setResource(GrGpuResource* resource, GrIOType ioType) { in setResource()
|
D | GrPathRange.h | 24 class GrPathRange : public GrGpuResource { 150 typedef GrGpuResource INHERITED;
|
/external/skia/src/gpu/vk/ |
D | GrVkRenderTarget.h | 32 GrGpuResource::LifeCycle, 36 GrGpuResource::LifeCycle, 72 GrGpuResource::LifeCycle, 80 GrGpuResource::LifeCycle, 89 GrGpuResource::LifeCycle, 95 GrGpuResource::LifeCycle, 101 GrGpuResource::LifeCycle,
|
D | GrVkTexture.h | 21 GrGpuResource::LifeCycle, 26 GrGpuResource::LifeCycle, 40 GrVkTexture(GrVkGpu*, const GrSurfaceDesc&, GrGpuResource::LifeCycle, 43 GrVkTexture(GrVkGpu*, const GrSurfaceDesc&, GrGpuResource::LifeCycle, 47 GrGpuResource::LifeCycle, VkFormat,
|
D | GrVkTextureRenderTarget.h | 27 GrGpuResource::LifeCycle, 32 GrGpuResource::LifeCycle, 50 GrGpuResource::LifeCycle lifeCycle, in GrVkTextureRenderTarget() 66 GrGpuResource::LifeCycle lifeCycle, in GrVkTextureRenderTarget() 79 GrGpuResource::LifeCycle,
|
D | GrVkTexture.cpp | 18 GrGpuResource::LifeCycle lifeCycle, in GrVkTexture() 31 GrGpuResource::LifeCycle lifeCycle, in GrVkTexture() 43 GrGpuResource::LifeCycle lifeCycle, in Create() 57 GrGpuResource::LifeCycle lifeCycle, in CreateNewTexture() 74 GrGpuResource::LifeCycle lifeCycle, in CreateWrappedTexture()
|
D | GrVkRenderTarget.cpp | 24 GrGpuResource::LifeCycle lifeCycle, in GrVkRenderTarget() 50 GrGpuResource::LifeCycle lifeCycle, in GrVkRenderTarget() 76 GrGpuResource::LifeCycle lifeCycle, in GrVkRenderTarget() 97 GrGpuResource::LifeCycle lifeCycle, in GrVkRenderTarget() 117 GrGpuResource::LifeCycle lifeCycle, in Create() 187 GrGpuResource::LifeCycle lifeCycle, in CreateNewRenderTarget() 206 GrGpuResource::LifeCycle lifeCycle, in CreateWrappedRenderTarget()
|
D | GrVkStencilAttachment.h | 27 static GrVkStencilAttachment* Create(GrVkGpu* gpu, GrGpuResource::LifeCycle lifeCycle, 46 GrGpuResource::LifeCycle lifeCycle,
|
D | GrVkTextureRenderTarget.cpp | 20 GrGpuResource::LifeCycle lifeCycle, in Create() 119 GrGpuResource::LifeCycle lifeCycle, in CreateNewTextureRenderTarget() 141 GrGpuResource::LifeCycle lifeCycle, in CreateWrappedTextureRenderTarget()
|
/external/skia/include/gpu/ |
D | GrGpuResource.h | 140 class SK_API GrGpuResource : public GrIORef<GrGpuResource> { 268 GrGpuResource(GrGpu*, LifeCycle); 269 virtual ~GrGpuResource(); 283 return GrGpuResource::kAdopted_LifeCycle == fLifeCycle || in isExternal() 284 GrGpuResource::kBorrowed_LifeCycle == fLifeCycle; in isExternal() 349 typedef GrIORef<GrGpuResource> INHERITED; 350 friend class GrIORef<GrGpuResource>; // to access notifyAllCntsAreZero and notifyRefCntIsZero.
|
D | GrGpuResourceRef.h | 41 GrGpuResource* getResource() const { return fResource; } in getResource() 55 GrGpuResourceRef(GrGpuResource*, GrIOType); 59 void setResource(GrGpuResource*, GrIOType); 80 GrGpuResource* fResource;
|
D | GrTextureProvider.h | 112 void assignUniqueKeyToResource(const GrUniqueKey&, GrGpuResource*); 119 GrGpuResource* findAndRefResourceByUniqueKey(const GrUniqueKey&);
|
D | GrSurface.h | 21 class SK_API GrSurface : public GrGpuResource { 177 typedef GrGpuResource INHERITED;
|
/external/skia/bench/ |
D | GrResourceCacheBench.cpp | 24 class BenchResource : public GrGpuResource { 41 typedef GrGpuResource INHERITED; 48 GrGpuResource* resource = new BenchResource(gpu); in populate_cache() 147 SkAutoTUnref<GrGpuResource> resource(cache->findAndRefUniqueResource(key)); in onDraw()
|
/external/skia/tests/ |
D | ResourceCacheTest.cpp | 241 class TestResource : public GrGpuResource { 250 TestResource(GrGpu* gpu, size_t size, GrGpuResource::LifeCycle lifeCycle) in TestResource() 259 TestResource(GrGpu* gpu, GrGpuResource::LifeCycle lifeCycle) in TestResource() 330 typedef GrGpuResource INHERITED; 424 TestResource* wrapped = new TestResource(context->getGpu(), GrGpuResource::kBorrowed_LifeCycle); in test_budgeting() 427 new TestResource(context->getGpu(), GrGpuResource::kUncached_LifeCycle); in test_budgeting() 462 wrapped = new TestResource(context->getGpu(), GrGpuResource::kBorrowed_LifeCycle); in test_budgeting() 525 unbudgeted = new TestResource(context->getGpu(), large, GrGpuResource::kUncached_LifeCycle); in test_unbudgeted() 537 wrapped = new TestResource(context->getGpu(), large, GrGpuResource::kBorrowed_LifeCycle); in test_unbudgeted() 688 GrGpuResource* find; in test_remove_scratch_key() [all …]
|