Home
last modified time | relevance | path

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

12

/external/skia/src/gpu/
DGrResourceCache.h131 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 …]
DGrGpuResource.cpp23 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 …]
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 {
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()
DGrResourceCache.cpp120 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 …]
DGrStencilAttachment.h19 class GrStencilAttachment : public GrGpuResource {
58 : GrGpuResource(gpu, lifeCycle) in GrStencilAttachment()
78 typedef GrGpuResource INHERITED;
DGrTextureProvider.cpp106 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()
DGrTransferBuffer.h15 class GrTransferBuffer : public GrGpuResource {
73 typedef GrGpuResource INHERITED;
DGrPath.h17 class GrPath : public GrGpuResource {
53 typedef GrGpuResource INHERITED;
DGrGeometryBuffer.h20 class GrGeometryBuffer : public GrGpuResource {
121 typedef GrGpuResource INHERITED;
DGrGpuResourceRef.cpp16 GrGpuResourceRef::GrGpuResourceRef(GrGpuResource* resource, GrIOType ioType) { in GrGpuResourceRef()
54 void GrGpuResourceRef::setResource(GrGpuResource* resource, GrIOType ioType) { in setResource()
DGrPathRange.h24 class GrPathRange : public GrGpuResource {
150 typedef GrGpuResource INHERITED;
/external/skia/src/gpu/vk/
DGrVkRenderTarget.h32 GrGpuResource::LifeCycle,
36 GrGpuResource::LifeCycle,
72 GrGpuResource::LifeCycle,
80 GrGpuResource::LifeCycle,
89 GrGpuResource::LifeCycle,
95 GrGpuResource::LifeCycle,
101 GrGpuResource::LifeCycle,
DGrVkTexture.h21 GrGpuResource::LifeCycle,
26 GrGpuResource::LifeCycle,
40 GrVkTexture(GrVkGpu*, const GrSurfaceDesc&, GrGpuResource::LifeCycle,
43 GrVkTexture(GrVkGpu*, const GrSurfaceDesc&, GrGpuResource::LifeCycle,
47 GrGpuResource::LifeCycle, VkFormat,
DGrVkTextureRenderTarget.h27 GrGpuResource::LifeCycle,
32 GrGpuResource::LifeCycle,
50 GrGpuResource::LifeCycle lifeCycle, in GrVkTextureRenderTarget()
66 GrGpuResource::LifeCycle lifeCycle, in GrVkTextureRenderTarget()
79 GrGpuResource::LifeCycle,
DGrVkTexture.cpp18 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()
DGrVkRenderTarget.cpp24 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()
DGrVkStencilAttachment.h27 static GrVkStencilAttachment* Create(GrVkGpu* gpu, GrGpuResource::LifeCycle lifeCycle,
46 GrGpuResource::LifeCycle lifeCycle,
DGrVkTextureRenderTarget.cpp20 GrGpuResource::LifeCycle lifeCycle, in Create()
119 GrGpuResource::LifeCycle lifeCycle, in CreateNewTextureRenderTarget()
141 GrGpuResource::LifeCycle lifeCycle, in CreateWrappedTextureRenderTarget()
/external/skia/include/gpu/
DGrGpuResource.h140 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.
DGrGpuResourceRef.h41 GrGpuResource* getResource() const { return fResource; } in getResource()
55 GrGpuResourceRef(GrGpuResource*, GrIOType);
59 void setResource(GrGpuResource*, GrIOType);
80 GrGpuResource* fResource;
DGrTextureProvider.h112 void assignUniqueKeyToResource(const GrUniqueKey&, GrGpuResource*);
119 GrGpuResource* findAndRefResourceByUniqueKey(const GrUniqueKey&);
DGrSurface.h21 class SK_API GrSurface : public GrGpuResource {
177 typedef GrGpuResource INHERITED;
/external/skia/bench/
DGrResourceCacheBench.cpp24 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/
DResourceCacheTest.cpp241 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 …]

12