/external/skia/src/gpu/ |
D | GrResourceCache.h | 129 GrGpuResource* findAndRefScratchResource(const GrScratchKey& scratchKey, uint32_t flags = 0); 141 GrGpuResource* findAndRefUniqueResource(const GrUniqueKey& key) { in findAndRefUniqueResource() 142 GrGpuResource* resource = fUniqueHash.find(key); in findAndRefUniqueResource() 192 void insertResource(GrGpuResource*); 193 void removeResource(GrGpuResource*); 194 void notifyCntReachedZero(GrGpuResource*, uint32_t flags); 195 void didChangeGpuMemorySize(const GrGpuResource*, size_t oldSize); 196 void changeUniqueKey(GrGpuResource*, const GrUniqueKey&); 197 void removeUniqueKey(GrGpuResource*); 198 void willRemoveScratchKey(const GrGpuResource*); [all …]
|
D | GrGpuResource.cpp | 21 GrGpuResource::GrGpuResource(GrGpu* gpu, LifeCycle lifeCycle) in GrGpuResource() function in GrGpuResource 29 void GrGpuResource::registerWithCache() { in registerWithCache() 33 GrGpuResource::~GrGpuResource() { in ~GrGpuResource() 38 void GrGpuResource::release() { in release() 46 void GrGpuResource::abandon() { in abandon() 54 const SkData* GrGpuResource::setCustomData(const SkData* data) { in setCustomData() 60 const GrContext* GrGpuResource::getContext() const { in getContext() 68 GrContext* GrGpuResource::getContext() { in getContext() 76 void GrGpuResource::didChangeGpuMemorySize() const { in didChangeGpuMemorySize() 87 void GrGpuResource::removeUniqueKey() { in removeUniqueKey() [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 { 36 bool isWrapped() const { return GrGpuResource::kWrapped_LifeCycle == fResource->fLifeCycle; } in isWrapped() 69 CacheAccess(GrGpuResource* resource) : fResource(resource) {} in CacheAccess() 77 GrGpuResource* fResource; 79 friend class GrGpuResource; // to construct/copy this type. variable 84 inline GrGpuResource::CacheAccess GrGpuResource::cacheAccess() { return CacheAccess(this); } in cacheAccess() 86 inline const GrGpuResource::CacheAccess GrGpuResource::cacheAccess() const { in cacheAccess() 87 return CacheAccess(const_cast<GrGpuResource*>(this)); in cacheAccess()
|
D | GrResourceCache.cpp | 119 void GrResourceCache::insertResource(GrGpuResource* resource) { in insertResource() 156 void GrResourceCache::removeResource(GrGpuResource* resource) { in removeResource() 189 GrGpuResource* back = *(fNonpurgeableResources.end() - 1); in abandonAll() 195 GrGpuResource* top = fPurgeableQueue.peek(); in abandonAll() 213 GrGpuResource* back = *(fNonpurgeableResources.end() - 1); in releaseAll() 219 GrGpuResource* top = fPurgeableQueue.peek(); in releaseAll() 237 bool operator()(const GrGpuResource* resource) const { in operator ()() 248 GrGpuResource* GrResourceCache::findAndRefScratchResource(const GrScratchKey& scratchKey, in findAndRefScratchResource() 252 GrGpuResource* resource; in findAndRefScratchResource() 273 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 | GrPath.h | 16 class GrPath : public GrGpuResource { 47 typedef GrGpuResource INHERITED;
|
D | GrTextureProvider.cpp | 92 GrGpuResource* resource = fCache->findAndRefScratchResource(key, scratchFlags); in internalRefScratchTexture() 121 void GrTextureProvider::assignUniqueKeyToResource(const GrUniqueKey& key, GrGpuResource* resource) { in assignUniqueKeyToResource() 132 GrGpuResource* GrTextureProvider::findAndRefResourceByUniqueKey(const GrUniqueKey& key) { in findAndRefResourceByUniqueKey()
|
D | GrGeometryBuffer.h | 20 class GrGeometryBuffer : public GrGpuResource { 121 typedef GrGpuResource INHERITED;
|
D | GrPathRange.h | 25 class GrPathRange : public GrGpuResource { 94 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 | GrTest.cpp | 89 void update(GrGpuResource* resource) { in dumpStats() 177 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCycle lifeCycle, in onCreateTexture() 182 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCycle, in onCreateCompressedTexture()
|
D | GrGpu.cpp | 98 GrGpuResource::LifeCycle lifeCycle = budgeted ? GrGpuResource::kCached_LifeCycle : in createTexture() 99 GrGpuResource::kUncached_LifeCycle; in createTexture()
|
D | GrGpu.h | 417 GrGpuResource::LifeCycle lifeCycle, 420 GrGpuResource::LifeCycle lifeCycle,
|
/external/skia/include/gpu/ |
D | GrGpuResource.h | 142 class SK_API GrGpuResource : public GrIORef<GrGpuResource> { 144 SK_DECLARE_INST_COUNT(GrGpuResource) 256 GrGpuResource(GrGpu*, LifeCycle); 257 virtual ~GrGpuResource(); 326 typedef GrIORef<GrGpuResource> INHERITED; 327 friend class GrIORef<GrGpuResource>; // to access notifyAllCntsAreZero and notifyRefCntIsZero.
|
D | GrGpuResourceRef.h | 43 GrGpuResource* getResource() const { return fResource; } in getResource() 57 GrGpuResourceRef(GrGpuResource*, GrIOType); 61 void setResource(GrGpuResource*, GrIOType); 82 GrGpuResource* fResource;
|
D | GrTextureProvider.h | 45 GrGpuResource* resource = this->findAndRefResourceByUniqueKey(key); in findAndRefTextureByUniqueKey() 134 void assignUniqueKeyToResource(const GrUniqueKey&, GrGpuResource*); 141 GrGpuResource* findAndRefResourceByUniqueKey(const GrUniqueKey&);
|
D | GrSurface.h | 21 class GrSurface : public GrGpuResource { 149 typedef GrGpuResource INHERITED;
|
/external/skia/bench/ |
D | GrResourceCacheBench.cpp | 24 class BenchResource : public GrGpuResource { 41 typedef GrGpuResource INHERITED; 48 GrGpuResource* resource = SkNEW_ARGS(BenchResource, (gpu)); in populate_cache() 131 SkAutoTUnref<GrGpuResource> resource(cache->findAndRefUniqueResource(key)); in onDraw()
|
/external/skia/tests/ |
D | ResourceCacheTest.cpp | 175 class TestResource : public GrGpuResource { 184 TestResource(GrGpu* gpu, size_t size, GrGpuResource::LifeCycle lifeCycle) in TestResource() 193 TestResource(GrGpu* gpu, GrGpuResource::LifeCycle lifeCycle) in TestResource() 264 typedef GrGpuResource INHERITED; 359 (context->getGpu(), GrGpuResource::kWrapped_LifeCycle)); in test_budgeting() 362 (context->getGpu(), GrGpuResource::kUncached_LifeCycle)); in test_budgeting() 397 wrapped = SkNEW_ARGS(TestResource, (context->getGpu(), GrGpuResource::kWrapped_LifeCycle)); in test_budgeting() 461 (context->getGpu(), large, GrGpuResource::kUncached_LifeCycle)); in test_unbudgeted() 474 (context->getGpu(), large, GrGpuResource::kWrapped_LifeCycle)); in test_unbudgeted() 625 GrGpuResource* find; in test_remove_scratch_key() [all …]
|
/external/skia/src/gpu/gl/ |
D | GrGLGpu.h | 120 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCycle lifeCycle, 123 GrGpuResource::LifeCycle lifeCycle, 284 bool createRenderTargetObjects(const GrSurfaceDesc&, GrGpuResource::LifeCycle lifeCycle,
|
D | GrGLStencilAttachment.h | 29 GrGpuResource::LifeCycle fLifeCycle;
|
D | GrGLRenderTarget.h | 28 GrGpuResource::LifeCycle fLifeCycle;
|
D | GrGLTexture.h | 32 GrGpuResource::LifeCycle fLifeCycle;
|
D | GrGLGpu.cpp | 435 idDesc.fLifeCycle = GrGpuResource::kWrapped_LifeCycle; in onWrapBackendTexture() 457 if (!this->createRenderTargetObjects(surfDesc, GrGpuResource::kUncached_LifeCycle, in onWrapBackendTexture() 477 idDesc.fLifeCycle = GrGpuResource::kWrapped_LifeCycle; in onWrapBackendRenderTarget() 854 GrGpuResource::LifeCycle lifeCycle, in createRenderTargetObjects() 974 GrGpuResource::LifeCycle lifeCycle, in onCreateTexture() 1054 GrGpuResource::LifeCycle lifeCycle, in onCreateCompressedTexture()
|