Lines Matching refs:dst
521 SkRRect dst;
522 dst.setEmpty();
524 const SkRRect copyOfDst = dst;
526 bool success = orig.transform(matrix, &dst);
529 // Since the transform failed, dst should be unchanged.
530 REPORTER_ASSERT(reporter, copyOfDst == dst);
533 REPORTER_ASSERT(reporter, orig != dst);
541 const SkVector& dstUL = dst.radii(SkRRect::kUpperLeft_Corner); \
542 const SkVector& dstUR = dst.radii(SkRRect::kUpperRight_Corner); \
543 const SkVector& dstLR = dst.radii(SkRRect::kLowerRight_Corner); \
544 const SkVector& dstLL = dst.radii(SkRRect::kLowerLeft_Corner)
548 SkRRect dst;
549 dst.setEmpty();
552 bool success = orig.transform(SkMatrix::I(), &dst);
554 REPORTER_ASSERT(reporter, orig == dst);
585 dst.setEmpty();
586 success = orig.transform(matrix, &dst);
590 orig.radii((SkRRect::Corner) i) == dst.radii((SkRRect::Corner) i));
592 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width());
593 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height());
594 REPORTER_ASSERT(reporter, dst.rect().left() == orig.rect().left() + translateX);
595 REPORTER_ASSERT(reporter, dst.rect().top() == orig.rect().top() + translateY);
604 dst.setEmpty();
605 success = orig.transform(matrix, &dst);
616 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width());
617 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height());
619 REPORTER_ASSERT(reporter, orig.rect().right() == -dst.rect().left());
621 REPORTER_ASSERT(reporter, orig.rect().top() == dst.rect().top());
630 dst.setEmpty();
631 success = orig.transform(matrix, &dst);
642 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width());
643 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height());
645 REPORTER_ASSERT(reporter, orig.rect().top() == -dst.rect().bottom());
647 REPORTER_ASSERT(reporter, orig.rect().left() == dst.rect().left());
653 dst.setEmpty();
654 success = orig.transform(matrix, &dst);
664 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().width());
665 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().height());
666 REPORTER_ASSERT(reporter, orig.rect().top() == -dst.rect().bottom());
667 REPORTER_ASSERT(reporter, orig.rect().right() == -dst.rect().left());
675 dst.setEmpty();
676 success = orig.transform(matrix, &dst);
680 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.radii((SkRRect::Corner) i).fX,
682 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.radii((SkRRect::Corner) i).fY,
685 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().width(),
687 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().height(),
689 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().left(),
691 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst.rect().top(),
701 dst.setEmpty();
702 success = orig.transform(matrix, &dst);
717 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().height());
718 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().width());
727 dst.setEmpty();
728 success = orig.transform(matrix, &dst);
742 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().height());
743 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().width());
758 REPORTER_ASSERT(reporter, dst == dst2);
770 REPORTER_ASSERT(reporter, dst == dst2);
782 REPORTER_ASSERT(reporter, dst == dst2);
791 dst.setEmpty();
792 success = orig.transform(matrix, &dst);
806 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().height());
807 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().width());
820 REPORTER_ASSERT(reporter, dst == dst2);
832 REPORTER_ASSERT(reporter, dst == dst2);
844 REPORTER_ASSERT(reporter, dst == dst2);
856 dst.setEmpty();
857 success = orig.transform(matrix, &dst);
872 REPORTER_ASSERT(reporter, orig.rect().width() == dst.rect().height());
873 REPORTER_ASSERT(reporter, orig.rect().height() == dst.rect().width());
885 REPORTER_ASSERT(reporter, dst == dst2);
896 dst.setEmpty();
897 success = orig.transform(matrix, &dst);
904 REPORTER_ASSERT(reporter, dst == dst2);
940 SkRRect dst;
942 bool success = rrect.transform(xform, &dst);
945 SkScalar halfWidth = SkScalarHalf(dst.width());
946 SkScalar halfHeight = SkScalarHalf(dst.height());
950 SkScalarNearlyEqual(dst.radii((SkRRect::Corner)i).fX, halfWidth));
952 SkScalarNearlyEqual(dst.radii((SkRRect::Corner)i).fY, halfHeight));