Lines Matching refs:fCachedAtlas
228 if (entry->fCachedAtlas) { in find()
229 SkASSERT(SkToBool(entry->fCachedAtlas->peekOnFlushRefCnt()) in find()
230 == SkToBool(entry->fCachedAtlas->getOnFlushProxy())); in find()
231 if (!entry->fCachedAtlas->getOnFlushProxy()) { in find()
232 entry->fCachedAtlas->setOnFlushProxy( in find()
233 onFlushRP->findOrCreateProxyByUniqueKey(entry->fCachedAtlas->textureKey(), in find()
236 if (!entry->fCachedAtlas->getOnFlushProxy()) { in find()
244 SkASSERT(!entry->fCachedAtlas || entry->fCachedAtlas->getOnFlushProxy()); in find()
334 if (entry->fCachedAtlas) { in OnFlushRef()
335 entry->fCachedAtlas->incrOnFlushRefCnt(); in OnFlushRef()
346 if (fEntry->fCachedAtlas) { in ~OnFlushEntryRef()
347 fEntry->fCachedAtlas->decrOnFlushRefCnt(); in ~OnFlushEntryRef()
358 SkASSERT(!fCachedAtlas); // Otherwise we would need to call releaseCachedAtlas(). in setCoverageCountAtlas()
366 fCachedAtlas = atlas->refOrMakeCachedAtlas(onFlushRP); in setCoverageCountAtlas()
367 fCachedAtlas->incrOnFlushRefCnt(fOnFlushRefCnt); in setCoverageCountAtlas()
368 fCachedAtlas->addPathPixels(devIBounds.height() * devIBounds.width()); in setCoverageCountAtlas()
383 SkASSERT(fCachedAtlas); in upgradeToLiteralCoverageAtlas()
384 SkASSERT(GrCCAtlas::CoverageType::kFP16_CoverageCount == fCachedAtlas->coverageType()); in upgradeToLiteralCoverageAtlas()
388 fCachedAtlas = atlas->refOrMakeCachedAtlas(onFlushRP); in upgradeToLiteralCoverageAtlas()
389 fCachedAtlas->incrOnFlushRefCnt(fOnFlushRefCnt); in upgradeToLiteralCoverageAtlas()
390 fCachedAtlas->addPathPixels(this->height() * this->width()); in upgradeToLiteralCoverageAtlas()
399 if (fCachedAtlas) { in releaseCachedAtlas()
400 result = fCachedAtlas->invalidatePathPixels(pathCache, this->height() * this->width()); in releaseCachedAtlas()
403 fCachedAtlas->decrOnFlushRefCnt(fOnFlushRefCnt); in releaseCachedAtlas()
405 fCachedAtlas = nullptr; in releaseCachedAtlas()