Lines Matching refs:dContext
24 static void test_basic_draw_as_src(skiatest::Reporter* reporter, GrDirectContext* dContext, in test_basic_draw_as_src() argument
28 dContext, {colorType, kPremul_SkAlphaType, nullptr, rectView.dimensions()}); in test_basic_draw_as_src()
34 TestReadPixels(reporter, dContext, fillContext.get(), expectedPixelValues, in test_basic_draw_as_src()
40 static void test_clear(skiatest::Reporter* reporter, GrDirectContext* dContext, in test_clear() argument
81 TestReadPixels(reporter, dContext, sfc, expectedPixels.get(), "RectangleTexture-clear"); in test_clear()
86 GrDirectContext* dContext, in test_copy_to_surface() argument
106 auto srcView = sk_gpu_test::MakeTextureProxyViewFromData(dContext, in test_copy_to_surface()
113 TestReadPixels(reporter, dContext, dstContext, pixels.get(), testName); in test_copy_to_surface()
119 auto dContext = ctxInfo.directContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
121 GrProxyProvider* proxyProvider = dContext->priv().proxyProvider(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
137 GrBackendTexture rectangleTex = dContext->createBackendTexture(kWidth, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
146 if (!dContext->updateBackendTexture(rectangleTex, &pm, 1, origin, nullptr, nullptr)) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
161 dContext->deleteBackendTexture(rectangleTex); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
174 GrSwizzle swizzle = dContext->priv().caps()->getReadSwizzle(rectangleTex.getBackendFormat(), in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
178 test_basic_draw_as_src(reporter, dContext, view, grII.colorType(), kPremul_SkAlphaType, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
182 TestCopyFromSurface(reporter, dContext, rectProxy, origin, grII.colorType(), refPixels, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
185 auto rectContext = GrSurfaceContext::Make(dContext, std::move(view), grII.colorInfo()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
188 TestReadPixels(reporter, dContext, rectContext.get(), refPixels, "RectangleTexture-read"); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
190 test_copy_to_surface(reporter, dContext, rectContext.get(), "RectangleTexture-copy-to"); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
192 TestWritePixels(reporter, dContext, rectContext.get(), true, "RectangleTexture-write"); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
194 test_clear(reporter, dContext, rectContext.get()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
196 dContext->deleteBackendTexture(rectangleTex); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()