73 int preCount = cache->getResourceCount();
77 if (
texture->getUniqueKey().isValid()) {
78 texture->resourcePriv().removeUniqueKey();
80 if (
texture->resourcePriv().getScratchKey().isValid()) {
81 texture->resourcePriv().removeScratchKey();
85 int postCount = cache->getResourceCount();
size_t onGpuMemorySize() const override
skgpu::Mipmapped mipmapped() const
GrTexture(GrGpu *, const SkISize &, GrProtected, GrTextureType, GrMipmapStatus, std::string_view label)
static bool StealBackendTexture(sk_sp< GrTexture >, GrBackendTexture *, SkImages::BackendTextureReleaseProc *)
static void ComputeScratchKey(const GrCaps &caps, const GrBackendFormat &format, SkISize dimensions, GrRenderable, int sampleCnt, skgpu::Mipmapped, GrProtected, skgpu::ScratchKey *key)
void computeScratchKey(skgpu::ScratchKey *) const override
uint32_t uint32_t * format