/third_party/skia/src/gpu/ |
H A D | GrGpuResource.cpp | 12 #include "src/gpu/GrGpuResource.h" 24 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() 58 SkDebugf("OHOS GrGpuResource::release(), fGpu == nullptr"); in release() 67 void GrGpuResource [all...] |
H A D | GrResourceCache.h | 26 #include "src/gpu/GrGpuResource.h" 49 * Manages the lifetime of all GrGpuResource instances. 76 /** Used to access functionality needed by GrGpuResource for lifetime management. */ 141 * Abandons the backend API resources owned by all GrGpuResource objects and removes them from 147 * Releases the backend API resources owned by all GrGpuResource objects and removes them from 153 * Release GrGpuResource objects and removes them from the cache by tag. 157 * Get all GrGpuResource tags. 164 GrGpuResource* findAndRefScratchResource(const GrScratchKey& scratchKey); 176 GrGpuResource* findAndRefUniqueResource(const GrUniqueKey& key) { in findAndRefUniqueResource() 177 GrGpuResource* resourc in findAndRefUniqueResource() [all...] |
H A D | GrGpuResourcePriv.h | 11 #include "src/gpu/GrGpuResource.h" 15 * status of a GrGpuResource object. 17 class GrGpuResource::ResourcePriv { 79 ResourcePriv(GrGpuResource* resource) : fResource(resource) { } in ResourcePriv() 87 GrGpuResource* fResource; 89 friend class GrGpuResource; // to construct/copy this type. 92 inline GrGpuResource::ResourcePriv GrGpuResource::resourcePriv() { return ResourcePriv(this); } in resourcePriv() 94 inline const GrGpuResource::ResourcePriv GrGpuResource [all...] |
H A D | GrGpuResourceCacheAccess.h | 11 #include "src/gpu/GrGpuResource.h" 19 * This class allows GrResourceCache increased privileged access to GrGpuResource objects. 21 class GrGpuResource::CacheAccess { 90 CacheAccess(GrGpuResource* resource) : fResource(resource) {} in CacheAccess() 98 GrGpuResource* fResource; 100 friend class GrGpuResource; // to construct/copy this type. 105 inline GrGpuResource::CacheAccess GrGpuResource::cacheAccess() { return CacheAccess(this); } in cacheAccess() 107 inline const GrGpuResource::CacheAccess GrGpuResource [all...] |
H A D | GrResourceCache.cpp | 457 void GrResourceCache::updatePurgeableWidMap(GrGpuResource* resource, in updatePurgeableWidMap() 476 void GrResourceCache::updatePurgeablePidMap(GrGpuResource* resource, in updatePurgeablePidMap() 493 void GrResourceCache::updatePurgeableFidMap(GrGpuResource* resource, in updatePurgeableFidMap() 510 void GrResourceCache::updateRealAllocWidMap(GrGpuResource* resource, in updateRealAllocWidMap() 530 void GrResourceCache::updateRealAllocPidMap(GrGpuResource* resource, in updateRealAllocPidMap() 548 void GrResourceCache::updateRealAllocFidMap(GrGpuResource* resource, in updateRealAllocFidMap() 625 void GrResourceCache::insertResource(GrGpuResource* resource) in insertResource() 696 void GrResourceCache::removeResource(GrGpuResource* resource) { in removeResource() 747 GrGpuResource* back = *(fNonpurgeableResources.end() - 1); in abandonAll() 753 GrGpuResource* to in abandonAll() [all...] |
H A D | GrGpuResource.h | 21 * Base class for GrGpuResource. Provides the hooks for resources to interact with the cache. 23 * exposing all of GrGpuResource. 197 class SK_API GrGpuResource : public GrIORef<GrGpuResource> { class 259 * Gets an id that is unique for this GrGpuResource object. It is static in that it does 260 * not change when the content of the GrGpuResource object changes. This will never return 290 * Dumps memory usage information for this GrGpuResource to traceMemoryDump. 329 GrGpuResource(GrGpu*); 330 virtual ~GrGpuResource(); 421 using INHERITED = GrIORef<GrGpuResource>; [all...] |
H A D | GrGpuBuffer.h | 12 #include "src/gpu/GrGpuResource.h" 16 class GrGpuBuffer : public GrGpuResource, public GrBuffer { 28 void ref() const final { GrGpuResource::ref(); } 30 void unref() const final { GrGpuResource::unref(); }
|
H A D | GrResourceProvider.h | 49 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&);
|
H A D | GrSurface.h | 15 #include "src/gpu/GrGpuResource.h" 20 class GrSurface : public GrGpuResource { 154 using INHERITED = GrGpuResource;
|
H A D | GrRefCnt.h | 12 #include "src/gpu/GrGpuResource.h" 178 * usages in Ganesh. This allows for a scratch GrGpuResource to be reused for new draw calls even 183 GrIORef<GrGpuResource>, 184 GrIORef<GrGpuResource>,
|
H A D | GrTextureProxy.cpp | 99 sk_sp<GrGpuResource> invalidGpuResource; in ~GrTextureProxy() 104 invalidGpuResource = resourceProvider->findByUniqueKey<GrGpuResource>(fUniqueKey); in ~GrTextureProxy()
|
H A D | GrAHardwareBufferImageGenerator.h | 14 class GrGpuResource;
|
H A D | GrResourceProvider.cpp | 318 if (GrGpuResource* resource = fCache->findAndRefScratchResource(key)) { in findAndRefScratchTexture() 400 GrGpuResource* resource) { in assignUniqueKeyToResource() 408 sk_sp<GrGpuResource> GrResourceProvider::findResourceByUniqueKey(const GrUniqueKey& key) { in findResourceByUniqueKey() 411 : sk_sp<GrGpuResource>(fCache->findAndRefUniqueResource(key)); in findResourceByUniqueKey() 744 GrGpuResource* resource = fCache->findAndRefScratchResource(key); in refScratchMSAAAttachment()
|
H A D | GrGpuBuffer.cpp | 14 : GrGpuResource(gpu) in GrGpuBuffer()
|
H A D | GrSurfaceProxy.h | 14 #include "src/gpu/GrGpuResource.h" 164 explicit UniqueID(const GrGpuResource::UniqueID& id) : fID(id.asUInt()) { } in UniqueID() 166 UniqueID() : fID(GrGpuResource::CreateUniqueID()) { } in UniqueID()
|
H A D | GrProxyProvider.cpp | 249 GrGpuResource* resource = resourceCache->findAndRefUniqueResource(key); in findOrCreateProxyByUniqueKey() 894 // Locate the corresponding GrGpuResource (if it needs to be invalidated) before clearing the in processInvalidUniqueKeyImpl() 896 sk_sp<GrGpuResource> invalidGpuResource; in processInvalidUniqueKeyImpl() 901 invalidGpuResource = resourceProvider->findByUniqueKey<GrGpuResource>(key); in processInvalidUniqueKeyImpl()
|
/third_party/skia/bench/ |
H A D | GrResourceCacheBench.cpp | 14 #include "src/gpu/GrGpuResource.h" 22 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));
|
/third_party/skia/src/gpu/gl/ |
H A D | GrGLVertexArray.h | 14 #include "src/gpu/GrGpuResource.h" 81 GrGpuResource::UniqueID fVertexBufferUniqueID; 124 GrGpuResource::UniqueID fIndexBufferUniqueID;
|
H A D | GrGLGpu.h | 683 GrGpuResource::UniqueID fBoundBufferUniqueID; 735 GrGpuResource::UniqueID fHWBoundRenderTargetUniqueID; 745 GrGpuResource::UniqueID boundID(GrGLenum target) const; 747 void setBoundID(GrGLenum target, GrGpuResource::UniqueID); 753 GrGpuResource::UniqueID fBoundResourceID;
|
H A D | GrGLGpu.cpp | 149 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() 382 // Ensure any GrGpuResource objects get deleted first, since they may require a working GrGLGpu in ~GrGLGpu() 2272 GrGpuResource::UniqueID rtID = target->uniqueID(); in flushRenderTargetNoColorWrites() 2654 GrGpuResource::UniqueID textureID = texture->uniqueID(); in bindTexture()
|
/third_party/skia/tests/ |
H A D | ResourceCacheTest.cpp | 235 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() 730 // This method can't be static because it needs to friended in GrGpuResource::CacheAccess. 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* scratc in test_purge_invalidated() [all...] |