Home
last modified time | relevance | path

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

/third_party/skia/src/gpu/
DGrResourceCache.h153 GrGpuResource* findAndRefScratchResource(const GrScratchKey& scratchKey);
165 GrGpuResource* findAndRefUniqueResource(const GrUniqueKey& key) { in findAndRefUniqueResource()
166 GrGpuResource* resource = fUniqueHash.find(key); in findAndRefUniqueResource()
251 void update(GrGpuResource* resource) { in update()
295 void insertResource(GrGpuResource*);
296 void removeResource(GrGpuResource*);
297 void notifyARefCntReachedZero(GrGpuResource*, GrGpuResource::LastRemovedRef);
298 void changeUniqueKey(GrGpuResource*, const GrUniqueKey&);
299 void removeUniqueKey(GrGpuResource*);
300 void willRemoveScratchKey(const GrGpuResource*);
[all …]
DGrGpuResource.cpp24 GrGpuResource::GrGpuResource(GrGpu* gpu) : fGpu(gpu), fUniqueID(CreateUniqueID()) { in GrGpuResource() function in GrGpuResource
32 void GrGpuResource::registerWithCache(SkBudgeted budgeted) { in registerWithCache()
40 void GrGpuResource::registerWithCacheWrapped(GrWrapCacheable wrapType) { in registerWithCacheWrapped()
49 GrGpuResource::~GrGpuResource() { in ~GrGpuResource()
54 void GrGpuResource::release() { in release()
67 void GrGpuResource::abandon() { in abandon()
78 void GrGpuResource::dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const { in dumpMemoryStatistics()
87 void GrGpuResource::dumpMemoryStatisticsPriv(SkTraceMemoryDump* traceMemoryDump, in dumpMemoryStatisticsPriv()
108 bool GrGpuResource::isPurgeable() const { in isPurgeable()
116 bool GrGpuResource::hasRef() const { return this->internalHasRef(); } in hasRef()
[all …]
DGrGpuResourcePriv.h17 class GrGpuResource::ResourcePriv {
79 ResourcePriv(GrGpuResource* resource) : fResource(resource) { } in ResourcePriv()
87 GrGpuResource* fResource;
89 friend class GrGpuResource; // to construct/copy this type. variable
92 inline GrGpuResource::ResourcePriv GrGpuResource::resourcePriv() { return ResourcePriv(this); } in resourcePriv()
94 inline const GrGpuResource::ResourcePriv GrGpuResource::resourcePriv() const { // NOLINT(readabili… in resourcePriv()
95 return ResourcePriv(const_cast<GrGpuResource*>(this)); in resourcePriv()
DGrGpuResourceCacheAccess.h21 class GrGpuResource::CacheAccess {
89 CacheAccess(GrGpuResource* resource) : fResource(resource) {} in CacheAccess()
97 GrGpuResource* fResource;
99 friend class GrGpuResource; // to construct/copy this type. variable
104 inline GrGpuResource::CacheAccess GrGpuResource::cacheAccess() { return CacheAccess(this); } in cacheAccess()
106 inline const GrGpuResource::CacheAccess GrGpuResource::cacheAccess() const { // NOLINT(readability… in cacheAccess()
107 return CacheAccess(const_cast<GrGpuResource*>(this)); in cacheAccess()
DGrResourceCache.cpp133 void GrResourceCache::insertResource(GrGpuResource* resource) { in insertResource()
170 void GrResourceCache::removeResource(GrGpuResource* resource) { in removeResource()
209 GrGpuResource* back = *(fNonpurgeableResources.end() - 1); in abandonAll()
215 GrGpuResource* top = fPurgeableQueue.peek(); in abandonAll()
252 GrGpuResource* back = *(fNonpurgeableResources.end() - 1); in releaseAll()
258 GrGpuResource* top = fPurgeableQueue.peek(); in releaseAll()
278 std::vector<GrGpuResource*> recycleVector; in releaseByTag()
280 GrGpuResource* resource = fNonpurgeableResources[i]; in releaseByTag()
291 GrGpuResource* resource = fPurgeableQueue.at(i); in releaseByTag()
340 void GrResourceCache::refResource(GrGpuResource* resource) { in refResource()
[all …]
DGrGpuResource.h196 class GrGpuResource : public GrIORef<GrGpuResource> {
323 GrGpuResource(GrGpu*);
324 virtual ~GrGpuResource();
415 using INHERITED = GrIORef<GrGpuResource>;
416 friend class GrIORef<GrGpuResource>; // to access notifyRefCntWillBeZero and
421 class GrGpuResource::ProxyAccess {
423 ProxyAccess(GrGpuResource* resource) : fResource(resource) {} in ProxyAccess()
432 GrGpuResource* fResource;
434 friend class GrGpuResource; variable
438 inline GrGpuResource::ProxyAccess GrGpuResource::proxyAccess() { return ProxyAccess(this); } in proxyAccess()
DGrGpuBuffer.h16 class GrGpuBuffer : public GrGpuResource, public GrBuffer {
28 void ref() const final { GrGpuResource::ref(); } in ref()
30 void unref() const final { GrGpuResource::unref(); } in unref()
DGrResourceProvider.h49 template <typename T = GrGpuResource>
50 typename std::enable_if<std::is_base_of<GrGpuResource, T>::value, sk_sp<T>>::type
318 void assignUniqueKeyToResource(const GrUniqueKey&, GrGpuResource*);
341 sk_sp<GrGpuResource> findResourceByUniqueKey(const GrUniqueKey&);
DGrSurface.h20 class GrSurface : public GrGpuResource {
154 using INHERITED = GrGpuResource;
DGrRefCnt.h183 GrIORef<GrGpuResource>,
184 GrIORef<GrGpuResource>,
DGrAHardwareBufferImageGenerator.h14 class GrGpuResource; variable
DGrResourceProvider.cpp312 if (GrGpuResource* resource = fCache->findAndRefScratchResource(key)) { in findAndRefScratchTexture()
394 GrGpuResource* resource) { in assignUniqueKeyToResource()
402 sk_sp<GrGpuResource> GrResourceProvider::findResourceByUniqueKey(const GrUniqueKey& key) { in findResourceByUniqueKey()
405 : sk_sp<GrGpuResource>(fCache->findAndRefUniqueResource(key)); in findResourceByUniqueKey()
738 GrGpuResource* resource = fCache->findAndRefScratchResource(key); in refScratchMSAAAttachment()
DGrGpuBuffer.cpp14 : GrGpuResource(gpu) in GrGpuBuffer()
DGrSurfaceProxy.h164 explicit UniqueID(const GrGpuResource::UniqueID& id) : fID(id.asUInt()) { } in UniqueID()
166 UniqueID() : fID(GrGpuResource::CreateUniqueID()) { } in UniqueID()
DGrProxyProvider.cpp249 GrGpuResource* resource = resourceCache->findAndRefUniqueResource(key); in findOrCreateProxyByUniqueKey()
896 sk_sp<GrGpuResource> invalidGpuResource; in processInvalidUniqueKeyImpl()
901 invalidGpuResource = resourceProvider->findByUniqueKey<GrGpuResource>(key); in processInvalidUniqueKeyImpl()
DBUILD.bazel91 "GrGpuResource.cpp",
92 "GrGpuResource.h",
/third_party/skia/bench/
DGrResourceCacheBench.cpp22 class BenchResource : public GrGpuResource {
40 using INHERITED = GrGpuResource;
47 GrGpuResource* resource = new BenchResource(gpu); in populate_cache()
146 sk_sp<GrGpuResource> resource(cache->findAndRefUniqueResource(key)); in onDraw()
/third_party/skia/src/gpu/gl/
DGrGLVertexArray.h81 GrGpuResource::UniqueID fVertexBufferUniqueID;
124 GrGpuResource::UniqueID fIndexBufferUniqueID;
DGrGLGpu.h676 GrGpuResource::UniqueID fBoundBufferUniqueID;
728 GrGpuResource::UniqueID fHWBoundRenderTargetUniqueID;
738 GrGpuResource::UniqueID boundID(GrGLenum target) const;
740 void setBoundID(GrGLenum target, GrGpuResource::UniqueID);
746 GrGpuResource::UniqueID fBoundResourceID;
DGrGLGpu.cpp149 GrGpuResource::UniqueID GrGLGpu::TextureUnitBindings::boundID(GrGLenum target) const { in boundID()
157 void GrGLGpu::TextureUnitBindings::setBoundID(GrGLenum target, GrGpuResource::UniqueID resourceID) { in setBoundID()
164 this->setBoundID(target, GrGpuResource::UniqueID()); in invalidateForScratchUse()
2261 GrGpuResource::UniqueID rtID = target->uniqueID(); in flushRenderTargetNoColorWrites()
2643 GrGpuResource::UniqueID textureID = texture->uniqueID(); in bindTexture()
/third_party/skia/tests/
DResourceCacheTest.cpp235 class TestResource : public GrGpuResource {
323 using INHERITED = GrGpuResource;
559 GrGpuResource* wrappedCacheableViaKey = cache->findAndRefUniqueResource(uniqueKey2); in test_budgeting()
561 GrGpuResource* wrappedUncacheableViaKey = cache->findAndRefUniqueResource(uniqueKey3); in test_budgeting()
871 GrGpuResource* find = cache->findAndRefScratchResource(scratchKey); in test_remove_scratch_key()
945 GrGpuResource* find = cache->findAndRefScratchResource(scratchKey); in test_scratch_key_consistency()
954 GrGpuResource* find2 = cache->findAndRefScratchResource(scratchKey2); in test_scratch_key_consistency()
1050 sk_sp<GrGpuResource> d2(cache->findAndRefUniqueResource(key3)); in test_duplicate_unique_key()
1109 GrGpuResource* scratch = cache->findAndRefScratchResource(scratchKey); in test_purge_invalidated()
1180 SkTDArray<GrGpuResource*> resourcesToUnref; in test_timestamp_wrap()
[all …]
/third_party/skia/src/gpu/mtl/
DGrMtlTextureRenderTarget.mm138 // own GrGpuResource. Ideally the GrRenderTarget would not be a GrGpuResource and the GrTexture
/third_party/skia/gn/
Dgpu.gni111 "$_src/gpu/GrGpuResource.cpp",
112 "$_src/gpu/GrGpuResource.h",
/third_party/skia/site/docs/user/release/
Drelease_notes.md560 * Removed GrGpuResource, GrSurface, and GrTexture from public api. These were not
/third_party/skia/
DRELEASE_NOTES.txt665 * Removed GrGpuResource, GrSurface, and GrTexture from public api. These were not