Lines Matching refs:sdc
22 auto sdc = skgpu::v1::SurfaceDrawContext::Make(dContext, GrColorType::kRGBA_8888, nullptr, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
24 if (!sdc) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
28 run_test(reporter, dContext, sdc.get(), {3,4}, {5,6}, -2); // Negative. in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
29 run_test(reporter, dContext, sdc.get(), {3,4}, {-5,-6}, 2); // Positive. in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
30 run_test(reporter, dContext, sdc.get(), {0, 2.287f}, {0, -7.741f}, 0); // Zero. in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
31 run_test(reporter, dContext, sdc.get(), {62.17f, 0}, {-43.49f, 0}, 0); // Zero. in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
93 skgpu::v1::SurfaceDrawContext* sdc, SkVector a, SkVector b, in run_test() argument
95 SkASSERT(sdc->width() == 1); in run_test()
96 SkASSERT(sdc->height() == 1); in run_test()
98 sdc->clear(SkPMColor4f::FromBytes_RGBA(0xbaaaaaad)); in run_test()
104 sdc->drawRect(/*clip=*/nullptr, std::move(crossPaint), GrAA::kNo, SkMatrix::I(), in run_test()
111 sdc->readPixels(directContext, resultPM, {0, 0}); in run_test()