Home
last modified time | relevance | path

Searched refs:rectContext (Results 1 – 2 of 2) sorted by relevance

/third_party/skia/tests/
DRectangleTextureTest.cpp42 skgpu::SurfaceContext* rectContext) { in test_clear() argument
43 if (auto sfc = rectContext->asFillContext()) { in test_clear()
186 auto rectContext = dContext->priv().makeSC(std::move(view), grII.colorInfo()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
187 SkASSERT(rectContext); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
189 TestReadPixels(reporter, dContext, rectContext.get(), refPixels, "RectangleTexture-read"); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
191 test_copy_to_surface(reporter, dContext, rectContext.get(), "RectangleTexture-copy-to"); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
193 TestWritePixels(reporter, dContext, rectContext.get(), true, "RectangleTexture-write"); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
195 test_clear(reporter, dContext, rectContext.get()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/third_party/flutter/skia/tests/
DRectangleTextureTest.cpp46 static void test_clear(skiatest::Reporter* reporter, GrSurfaceContext* rectContext) { in test_clear() argument
47 if (GrRenderTargetContext* rtc = rectContext->asRenderTargetContext()) { in test_clear()
187 sk_sp<GrSurfaceContext> rectContext = context->priv().makeWrappedSurfaceContext( in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
189 SkASSERT(rectContext); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
191 test_read_pixels(reporter, rectContext.get(), refPixels, "RectangleTexture-read"); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
193 test_copy_to_surface(reporter, context, rectContext.get(), "RectangleTexture-copy-to"); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
195 test_write_pixels(reporter, rectContext.get(), true, "RectangleTexture-write"); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
197 test_clear(reporter, rectContext.get()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()