Lines Matching defs:reporter
107 void basic_transfer_to_test(skiatest::Reporter* reporter,
133 ERRORF(reporter, "Could not create texture");
175 ERRORF(reporter, "Could not map buffer");
192 REPORTER_ASSERT(reporter, result);
200 ERRORF(reporter, "Could not read pixels from texture, color type: %d",
206 [reporter, colorType](int x, int y, const float diffs[4]) {
207 ERRORF(reporter,
265 ERRORF(reporter, "Could not transfer pixels to texture, color type: %d",
272 ERRORF(reporter, "Could not read pixels from texture, color type: %d",
282 void basic_transfer_from_test(skiatest::Reporter* reporter, const sk_gpu_test::ContextInfo& ctxInfo,
359 REPORTER_ASSERT(reporter, buffer);
376 ERRORF(reporter, "transferPixelsFrom failed.");
387 REPORTER_ASSERT(reporter, map);
389 ERRORF(reporter, "Failed to map transfer buffer.");
401 [reporter, colorType](int x, int y, const float diffs[4]) {
402 ERRORF(reporter,
423 ERRORF(reporter, "transferPixelsFrom failed.");
433 REPORTER_ASSERT(reporter, map);
435 ERRORF(reporter, "Failed to map transfer buffer.");
451 REPORTER_ASSERT(reporter, gpu->stats()->transfersFromSurface() == expectedTransferCnt);
457 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(TransferPixelsToTextureTest, reporter, ctxInfo) {
483 basic_transfer_to_test(reporter, ctxInfo.directContext(), colorType, renderable);
489 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(TransferPixelsFromTextureTest, reporter, ctxInfo) {
515 basic_transfer_from_test(reporter, ctxInfo, colorType, renderable);