Lines Matching refs:dContext
206 auto dContext = factory.get(contextType); in DEF_GPUTEST() local
207 if (!dContext) { in DEF_GPUTEST()
211 GrProxyProvider* proxyProvider = dContext->priv().proxyProvider(); in DEF_GPUTEST()
212 const GrCaps* caps = dContext->priv().caps(); in DEF_GPUTEST()
272 auto texCtx = GrSurfaceContext::Make(dContext, std::move(view), info); in DEF_GPUTEST()
275 if (texCtx->readPixels(dContext, readback, {0, 0})) { in DEF_GPUTEST()
284 dContext->priv().getResourceCache()->purgeUnlockedResources(); in DEF_GPUTEST()
292 dContext, combo.fColorType, nullptr, fit, in DEF_GPUTEST()
300 surfCtx = GrSurfaceContext::Make(dContext, info, combo.fFormat, fit); in DEF_GPUTEST()
307 if (surfCtx->readPixels(dContext, readback, {0, 0})) { in DEF_GPUTEST()
314 dContext->priv().getResourceCache()->purgeUnlockedResources(); in DEF_GPUTEST()
352 auto dContext = context_info.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
353 GrProxyProvider* proxyProvider = dContext->priv().proxyProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
360 dContext, srcPixmap, kTopLeft_GrSurfaceOrigin, GrRenderable::kNo, GrProtected::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
368 GrSwizzle swizzle = dContext->priv().caps()->getReadSwizzle(proxy->backendFormat(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
371 auto surfContext = GrSurfaceContext::Make(dContext, std::move(view), ii.colorInfo()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
376 auto readResult = surfContext->readPixels(dContext, read, {0, 0}); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
387 auto writeResult = surfContext->writePixels(dContext, write, {0, 0}); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
390 dContext->flushAndSubmit(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
391 auto gpuWriteResult = dContext->priv().getGpu()->writePixels( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
401 auto copySrc = std::get<0>(GrMakeUncachedBitmapProxyView(dContext, copySrcBitmap)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
407 dContext->flushAndSubmit(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
408 auto gpuCopyResult = dContext->priv().getGpu()->copySurface( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
414 if (dContext->priv().caps()->mipmapSupport()) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
415 mbet = sk_gpu_test::ManagedBackendTexture::MakeWithoutData(dContext, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
425 dContext->flushAndSubmit(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
428 dContext->priv().getGpu()->regenerateMipMapLevels(proxy->peekTexture()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()