Lines Matching defs:reporter

54     OpenLibResult(skiatest::Reporter* reporter) {
57 REPORTER_ASSERT(reporter, fLibrary != nullptr, "Failed to open library!");
88 static void compare(skiatest::Reporter* reporter, SkImage* img0, SkImage* img1) {
102 REPORTER_ASSERT(reporter, img0->peekPixels(&pm[0]));
103 REPORTER_ASSERT(reporter, img1->peekPixels(&pm[1]));
105 REPORTER_ASSERT(reporter, pm[0].computeByteSize() == pm[1].computeByteSize());
106 REPORTER_ASSERT(reporter, pm[0].rowBytes() == (size_t)pm[0].width() * pm[0].info().bytesPerPixel());
107 REPORTER_ASSERT(reporter, pm[1].rowBytes() == (size_t)pm[1].width() * pm[1].info().bytesPerPixel());
109 REPORTER_ASSERT(reporter, false);
113 DEF_TEST(CanvasState_test_complex_layers, reporter) {
132 OpenLibResult openLibResult(reporter);
138 REPORTER_ASSERT(reporter, drawFn);
165 REPORTER_ASSERT(reporter, state);
170 REPORTER_ASSERT(reporter, success);
188 compare(reporter, images[0].get(), images[1].get());
194 DEF_TEST(CanvasState_test_complex_clips, reporter) {
227 OpenLibResult openLibResult(reporter);
233 REPORTER_ASSERT(reporter, drawFn);
255 REPORTER_ASSERT(reporter, state);
269 REPORTER_ASSERT(reporter, success);
287 compare(reporter, images[0].get(), images[1].get());
292 DEF_TEST(CanvasState_test_soft_clips, reporter) {
303 REPORTER_ASSERT(reporter, !state);
306 DEF_TEST(CanvasState_test_saveLayer_clip, reporter) {
322 REPORTER_ASSERT(reporter, canvas.isClipRect());
323 REPORTER_ASSERT(reporter, devClip.width() == LAYER_WIDTH);
324 REPORTER_ASSERT(reporter, devClip.height() == LAYER_HEIGHT);