• Home
  • Raw
  • Download

Lines Matching refs:resourceProvider

113 bool GrSurfaceProxyPriv::AttachStencilIfNeeded(GrResourceProvider* resourceProvider,  in AttachStencilIfNeeded()  argument
122 if (!resourceProvider->attachStencilAttachment(rt)) { in AttachStencilIfNeeded()
130 sk_sp<GrSurface> GrSurfaceProxy::createSurfaceImpl(GrResourceProvider* resourceProvider, in createSurfaceImpl() argument
148 resourceProvider->explicitlyAllocateGPUResources()) { in createSurfaceImpl()
171 surface = resourceProvider->createTexture(desc, fBudgeted, texels.get(), mipCount); in createSurfaceImpl()
178 surface = resourceProvider->createApproxTexture(desc, resourceProviderFlags); in createSurfaceImpl()
180 surface = resourceProvider->createTexture(desc, fBudgeted, resourceProviderFlags); in createSurfaceImpl()
187 if (!GrSurfaceProxyPriv::AttachStencilIfNeeded(resourceProvider, surface.get(), needsStencil)) { in createSurfaceImpl()
227 bool GrSurfaceProxy::instantiateImpl(GrResourceProvider* resourceProvider, int sampleCnt, in instantiateImpl() argument
235 return GrSurfaceProxyPriv::AttachStencilIfNeeded(resourceProvider, fTarget, needsStencil); in instantiateImpl()
238 sk_sp<GrSurface> surface = this->createSurfaceImpl(resourceProvider, sampleCnt, needsStencil, in instantiateImpl()
247 resourceProvider->assignUniqueKeyToResource(*uniqueKey, surface.get()); in instantiateImpl()
427 bool GrSurfaceProxyPriv::doLazyInstantiation(GrResourceProvider* resourceProvider) { in doLazyInstantiation() argument
433 surface = resourceProvider->findByUniqueKey<GrSurface>( in doLazyInstantiation()
438 surface = fProxy->fLazyInstantiateCallback(resourceProvider); in doLazyInstantiation()
463 if (!GrSurfaceProxyPriv::AttachStencilIfNeeded(resourceProvider, surface.get(), needsStencil)) { in doLazyInstantiation()
472 resourceProvider->assignUniqueKeyToResource(key, surface.get()); in doLazyInstantiation()