Lines Matching refs:Reporter
159 static void test_gatherpixelrefs(skiatest::Reporter* reporter) {
188 REPORTER_ASSERT(reporter, pic->willPlayBackBitmaps() || N == 0);
196 REPORTER_ASSERT(reporter, data);
199 REPORTER_ASSERT(reporter, 1 == count);
200 REPORTER_ASSERT(reporter, *(SkPixelRef**)data->data() == refs[i]);
233 REPORTER_ASSERT(reporter, found);
359 skiatest::Reporter* fReporter;
373 static void test_bitmap_with_encoded_data(skiatest::Reporter* reporter) {
385 REPORTER_ASSERT(reporter, installSuccess);
392 REPORTER_ASSERT(reporter, picture1->equals(picture2));
397 context.fReporter = reporter;
402 REPORTER_ASSERT(reporter, pictureFromStream.get() != NULL);
407 static void test_clone_empty(skiatest::Reporter* reporter) {
416 REPORTER_ASSERT(reporter, NULL != destPicture);
424 REPORTER_ASSERT(reporter, NULL != destPicture);
429 static void test_clip_bound_opt(skiatest::Reporter* reporter) {
454 REPORTER_ASSERT(reporter, true == nonEmpty);
455 REPORTER_ASSERT(reporter, 0 == clipBounds.fLeft);
456 REPORTER_ASSERT(reporter, 0 == clipBounds.fTop);
457 REPORTER_ASSERT(reporter, 10 == clipBounds.fBottom);
458 REPORTER_ASSERT(reporter, 10 == clipBounds.fRight);
467 REPORTER_ASSERT(reporter, true == nonEmpty);
468 REPORTER_ASSERT(reporter, 7 == clipBounds.fLeft);
469 REPORTER_ASSERT(reporter, 7 == clipBounds.fTop);
470 REPORTER_ASSERT(reporter, 8 == clipBounds.fBottom);
471 REPORTER_ASSERT(reporter, 8 == clipBounds.fRight);
480 REPORTER_ASSERT(reporter, true == nonEmpty);
481 REPORTER_ASSERT(reporter, 0 == clipBounds.fLeft);
482 REPORTER_ASSERT(reporter, 0 == clipBounds.fTop);
483 REPORTER_ASSERT(reporter, 10 == clipBounds.fBottom);
484 REPORTER_ASSERT(reporter, 10 == clipBounds.fRight);
492 REPORTER_ASSERT(reporter, true == nonEmpty);
493 REPORTER_ASSERT(reporter, 0 == clipBounds.fLeft);
494 REPORTER_ASSERT(reporter, 0 == clipBounds.fTop);
495 REPORTER_ASSERT(reporter, 10 == clipBounds.fBottom);
496 REPORTER_ASSERT(reporter, 10 == clipBounds.fRight);
507 REPORTER_ASSERT(reporter, true == nonEmpty);
508 REPORTER_ASSERT(reporter, 7 == clipBounds.fLeft);
509 REPORTER_ASSERT(reporter, 7 == clipBounds.fTop);
510 REPORTER_ASSERT(reporter, 8 == clipBounds.fBottom);
511 REPORTER_ASSERT(reporter, 8 == clipBounds.fRight);
520 REPORTER_ASSERT(reporter, true == nonEmpty);
521 REPORTER_ASSERT(reporter, 6 == clipBounds.fLeft);
522 REPORTER_ASSERT(reporter, 6 == clipBounds.fTop);
523 REPORTER_ASSERT(reporter, 8 == clipBounds.fBottom);
524 REPORTER_ASSERT(reporter, 8 == clipBounds.fRight);
564 static void test_clip_expansion(skiatest::Reporter* reporter) {
581 REPORTER_ASSERT(reporter, testCanvas.getClipCount() == 2);
584 static void test_hierarchical(skiatest::Reporter* reporter) {
593 REPORTER_ASSERT(reporter, !childPlain.willPlayBackBitmaps()); // 0
598 REPORTER_ASSERT(reporter, childWithBitmap.willPlayBackBitmaps()); // 1
604 REPORTER_ASSERT(reporter, !parentPP.willPlayBackBitmaps()); // 0
610 REPORTER_ASSERT(reporter, parentPWB.willPlayBackBitmaps()); // 1
617 REPORTER_ASSERT(reporter, parentWBP.willPlayBackBitmaps()); // 1
624 REPORTER_ASSERT(reporter, parentWBWB.willPlayBackBitmaps()); // 2
627 DEF_TEST(Picture, reporter) {
635 test_gatherpixelrefs(reporter);
636 test_bitmap_with_encoded_data(reporter);
637 test_clone_empty(reporter);
638 test_clip_bound_opt(reporter);
639 test_clip_expansion(reporter);
640 test_hierarchical(reporter);