Home
last modified time | relevance | path

Searched refs:GrGpuResource (Results 1 – 25 of 27) sorted by relevance

12

/external/skia/src/gpu/
DGrResourceCache.h129 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 …]
DGrGpuResource.cpp21 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 …]
DGrGpuResourcePriv.h18 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()
DGrGpuResourceCacheAccess.h22 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()
DGrResourceCache.cpp119 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 …]
DGrStencilAttachment.h19 class GrStencilAttachment : public GrGpuResource {
58 : GrGpuResource(gpu, lifeCycle) in GrStencilAttachment()
78 typedef GrGpuResource INHERITED;
DGrPath.h16 class GrPath : public GrGpuResource {
47 typedef GrGpuResource INHERITED;
DGrTextureProvider.cpp92 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()
DGrGeometryBuffer.h20 class GrGeometryBuffer : public GrGpuResource {
121 typedef GrGpuResource INHERITED;
DGrPathRange.h25 class GrPathRange : public GrGpuResource {
94 typedef GrGpuResource INHERITED;
DGrGpuResourceRef.cpp16 GrGpuResourceRef::GrGpuResourceRef(GrGpuResource* resource, GrIOType ioType) { in GrGpuResourceRef()
54 void GrGpuResourceRef::setResource(GrGpuResource* resource, GrIOType ioType) { in setResource()
DGrTest.cpp89 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()
DGrGpu.cpp98 GrGpuResource::LifeCycle lifeCycle = budgeted ? GrGpuResource::kCached_LifeCycle : in createTexture()
99 GrGpuResource::kUncached_LifeCycle; in createTexture()
DGrGpu.h417 GrGpuResource::LifeCycle lifeCycle,
420 GrGpuResource::LifeCycle lifeCycle,
/external/skia/include/gpu/
DGrGpuResource.h142 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.
DGrGpuResourceRef.h43 GrGpuResource* getResource() const { return fResource; } in getResource()
57 GrGpuResourceRef(GrGpuResource*, GrIOType);
61 void setResource(GrGpuResource*, GrIOType);
82 GrGpuResource* fResource;
DGrTextureProvider.h45 GrGpuResource* resource = this->findAndRefResourceByUniqueKey(key); in findAndRefTextureByUniqueKey()
134 void assignUniqueKeyToResource(const GrUniqueKey&, GrGpuResource*);
141 GrGpuResource* findAndRefResourceByUniqueKey(const GrUniqueKey&);
DGrSurface.h21 class GrSurface : public GrGpuResource {
149 typedef GrGpuResource INHERITED;
/external/skia/bench/
DGrResourceCacheBench.cpp24 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/
DResourceCacheTest.cpp175 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/
DGrGLGpu.h120 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCycle lifeCycle,
123 GrGpuResource::LifeCycle lifeCycle,
284 bool createRenderTargetObjects(const GrSurfaceDesc&, GrGpuResource::LifeCycle lifeCycle,
DGrGLStencilAttachment.h29 GrGpuResource::LifeCycle fLifeCycle;
DGrGLRenderTarget.h28 GrGpuResource::LifeCycle fLifeCycle;
DGrGLTexture.h32 GrGpuResource::LifeCycle fLifeCycle;
DGrGLGpu.cpp435 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()

12