Home
last modified time | relevance | path

Searched refs:GrGpuResource (Results 1 - 21 of 21) sorted by relevance

/third_party/skia/src/gpu/
H A DGrGpuResource.cpp12 #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 DGrResourceCache.h26 #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 DGrGpuResourcePriv.h11 #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 DGrGpuResourceCacheAccess.h11 #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 DGrResourceCache.cpp457 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 DGrGpuResource.h21 * 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 DGrGpuBuffer.h12 #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 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&);
H A DGrSurface.h15 #include "src/gpu/GrGpuResource.h"
20 class GrSurface : public GrGpuResource {
154 using INHERITED = GrGpuResource;
H A DGrRefCnt.h12 #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 DGrTextureProxy.cpp99 sk_sp<GrGpuResource> invalidGpuResource; in ~GrTextureProxy()
104 invalidGpuResource = resourceProvider->findByUniqueKey<GrGpuResource>(fUniqueKey); in ~GrTextureProxy()
H A DGrAHardwareBufferImageGenerator.h14 class GrGpuResource;
H A DGrResourceProvider.cpp318 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 DGrGpuBuffer.cpp14 : GrGpuResource(gpu) in GrGpuBuffer()
H A DGrSurfaceProxy.h14 #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 DGrProxyProvider.cpp249 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 DGrResourceCacheBench.cpp14 #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 DGrGLVertexArray.h14 #include "src/gpu/GrGpuResource.h"
81 GrGpuResource::UniqueID fVertexBufferUniqueID;
124 GrGpuResource::UniqueID fIndexBufferUniqueID;
H A DGrGLGpu.h683 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 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()
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 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()
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...]

Completed in 22 milliseconds