Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

167 static bool check_read(skiatest::Reporter* reporter,
197 ERRORF(reporter, "Expected readback alpha (%d, %d) value 0x%02x, got 0x%02x. ",
205 ERRORF(reporter, "Expected clipped out area of readback to be unchanged. "
227 ERRORF(reporter, "Expected readback pixel (%d, %d) value 0x%08x, got 0x%08x. "
235 ERRORF(reporter, "Expected clipped out area of readback to be unchanged. "
343 static void test_readpixels(skiatest::Reporter* reporter, const sk_sp<SkSurface>& surface,
369 REPORTER_ASSERT(reporter, success == expectSuccess);
371 REPORTER_ASSERT(reporter, idBefore == idAfter);
374 check_read(reporter, bmp, srcRect.fLeft, srcRect.fTop,
380 REPORTER_ASSERT(reporter, bmp.isNull());
386 DEF_TEST(ReadPixels, reporter) {
390 test_readpixels(reporter, surface, kLastAligned_BitmapInit);
393 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ReadPixels_Gpu, reporter, ctxInfo) {
405 test_readpixels(reporter, surface, kLast_BitmapInit);
411 static void test_readpixels_texture(skiatest::Reporter* reporter,
434 check_read(reporter, bmp, srcRect.fLeft, srcRect.fTop,
443 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ReadPixels_Texture, reporter, ctxInfo) {
473 test_readpixels_texture(reporter, std::move(sContext));
535 static void test_conversion(skiatest::Reporter* r, const SkImageInfo& dstInfo,
567 DEF_TEST(ReadPixels_ValidConversion, reporter) {
605 test_conversion(reporter,