Lines Matching refs:dContext
44 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
45 if (!dContext->priv().caps()->mipmapSupport()) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
54 auto mbet = sk_gpu_test::ManagedBackendTexture::MakeWithData(dContext, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
71 dContext, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
84 image = SkImage::MakeFromTexture(dContext, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
93 proxy = sk_ref_sp(sk_gpu_test::GetTextureImageProxy(image.get(), dContext)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
125 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
126 if (!dContext->priv().caps()->mipmapSupport()) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
135 dContext, ii, SkColors::kTransparent, betMipmapped); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
138 GrTextureProxy* proxy = sk_gpu_test::GetTextureImageProxy(image.get(), dContext); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
164 dContext, imageInfo, origin, requestMipmapped, GrImageTexGenPolicy::kDraw); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
173 genProxy->priv().doLazyInstantiation(dContext->priv().resourceProvider()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
175 genProxy->instantiate(dContext->priv().resourceProvider()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
286 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
287 if (!dContext->priv().caps()->mipmapSupport()) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
291 auto resourceProvider = dContext->priv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
300 surface = sk_gpu_test::MakeBackendTextureSurface(dContext, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
306 surface = SkSurface::MakeRenderTarget(dContext, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
326 texProxy = sk_gpu_test::GetTextureImageProxy(image.get(), dContext); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
339 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
340 if (!dContext->priv().caps()->mipmapSupport()) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
346 sk_sp<SkSurface> surface = SkSurface::MakeRenderTarget(dContext, SkBudgeted::kNo, info); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
423 sk_sp<GrDirectContext> dContext = GrDirectContext::MakeMock(&mockOptions, ctxOptions); variable
424 GrDrawingManager* drawingManager = dContext->priv().drawingManager();
425 if (!dContext) {
431 SkASSERT(dContext->priv().caps()->mipmapSupport());
433 GrBackendFormat format = dContext->defaultBackendFormat(
438 GrProxyProvider* proxyProvider = dContext->priv().proxyProvider();
451 dContext.get(), colorType, mipmapProxy, nullptr, kTopLeft_GrSurfaceOrigin,
464 GrSwizzle swizzle = dContext->priv().caps()->getReadSwizzle(format, colorType);
468 auto sdc1 = draw_mipmap_into_new_render_target(dContext.get(), colorType, alphaType,
483 auto sdc2 = draw_mipmap_into_new_render_target(dContext.get(), colorType, alphaType,
493 dContext->flushAndSubmit();
512 sdc1 = draw_mipmap_into_new_render_target(dContext.get(), colorType, alphaType,
525 sdc2 = draw_mipmap_into_new_render_target(dContext.get(), colorType, alphaType,
537 dContext->flushAndSubmit();