• Home
  • Raw
  • Download

Lines Matching refs:proxy

58 void GrResourceAllocator::addInterval(GrSurfaceProxy* proxy, unsigned int start, unsigned int end
66 if (proxy->readOnly()) {
69 SkASSERT(proxy->isInstantiated() ||
70 GrSurfaceProxy::LazyState::kNot != proxy->lazyInstantiationState());
72 if (Interval* intvl = fIntvlHash.find(proxy->uniqueID().asUInt())) {
96 newIntvl->resetTo(proxy, start, end);
98 newIntvl = fIntervalAllocator.make<Interval>(proxy, start, end);
107 if (proxy->readOnly() || !fResourceProvider->explicitlyAllocateGPUResources()) {
109 if (GrSurfaceProxy::LazyState::kNot != proxy->lazyInstantiationState()) {
110 if (proxy->priv().doLazyInstantiation(fResourceProvider)) {
111 if (proxy->priv().lazyInstantiationType() ==
113 fDeinstantiateTracker->addProxy(proxy);
241 sk_sp<GrSurface> GrResourceAllocator::findSurfaceFor(const GrSurfaceProxy* proxy, in findSurfaceFor() argument
244 if (proxy->asTextureProxy() && proxy->asTextureProxy()->getUniqueKey().isValid()) { in findSurfaceFor()
247 proxy->asTextureProxy()->getUniqueKey()); in findSurfaceFor()
261 proxy->priv().computeScratchKey(&key); in findSurfaceFor()
264 return !proxy->priv().requiresNoPendingIO() || !s->surfacePriv().hasPendingIO(); in findSurfaceFor()
268 if (SkBudgeted::kYes == proxy->isBudgeted() && in findSurfaceFor()
284 return proxy->priv().createSurface(fResourceProvider); in findSurfaceFor()
300 if (0 == temp->proxy()->priv().getProxyRefCnt()) { in expire()
341 bool needsStencil = cur->proxy()->asRenderTargetProxy() in assign()
342 ? cur->proxy()->asRenderTargetProxy()->needsStencil() in assign()
345 if (cur->proxy()->isInstantiated()) { in assign()
347 fResourceProvider, cur->proxy()->peekSurface(), needsStencil)) { in assign()
375 if (GrSurfaceProxy::LazyState::kNot != cur->proxy()->lazyInstantiationState()) { in assign()
376 if (!cur->proxy()->priv().doLazyInstantiation(fResourceProvider)) { in assign()
380 cur->proxy()->priv().lazyInstantiationType()) { in assign()
381 fDeinstantiateTracker->addProxy(cur->proxy()); in assign()
384 } else if (sk_sp<GrSurface> surface = this->findSurfaceFor(cur->proxy(), needsStencil)) { in assign()
386 GrTextureProxy* texProxy = cur->proxy()->asTextureProxy(); in assign()
399 cur->proxy()->uniqueID().asUInt()); in assign()
404 SkASSERT(!cur->proxy()->isInstantiated()); in assign()
443 cur->proxy()->uniqueID().asUInt(), in dumpIntervals()
444 cur->proxy()->isInstantiated() ? cur->proxy()->underlyingUniqueID().asUInt() : -1, in dumpIntervals()
447 cur->proxy()->priv().getProxyRefCnt(), in dumpIntervals()
448 cur->proxy()->getBackingRefCnt_TestOnly(), in dumpIntervals()
449 cur->proxy()->getPendingReadCnt_TestOnly(), in dumpIntervals()
450 cur->proxy()->getPendingWriteCnt_TestOnly()); in dumpIntervals()
458 cur->proxy()->uniqueID().asUInt(), in dumpIntervals()
459 cur->proxy()->isInstantiated() ? cur->proxy()->underlyingUniqueID().asUInt() : -1); in dumpIntervals()