Lines Matching refs:offsetPoly
40 SkTDArray<SkPoint> offsetPoly; in DEF_TEST() local
41 bool result = SkOffsetSimplePolygon(rrectPoly.begin(), rrectPoly.count(), 3, &offsetPoly); in DEF_TEST()
43 REPORTER_ASSERT(reporter, SkIsConvexPolygon(offsetPoly.begin(), offsetPoly.count())); in DEF_TEST()
46 result = SkOffsetSimplePolygon(rrectPoly.begin(), rrectPoly.count(), 10, &offsetPoly); in DEF_TEST()
48 REPORTER_ASSERT(reporter, SkIsConvexPolygon(offsetPoly.begin(), offsetPoly.count())); in DEF_TEST()
49 REPORTER_ASSERT(reporter, offsetPoly.count() == 4); in DEF_TEST()
50 if (offsetPoly.count() == 4) { in DEF_TEST()
51 REPORTER_ASSERT(reporter, offsetPoly[0].equals(-95, 45)); in DEF_TEST()
52 REPORTER_ASSERT(reporter, offsetPoly[1].equals(95, 45)); in DEF_TEST()
53 REPORTER_ASSERT(reporter, offsetPoly[2].equals(95, -45)); in DEF_TEST()
54 REPORTER_ASSERT(reporter, offsetPoly[3].equals(-95, -45)); in DEF_TEST()
59 result = SkOffsetSimplePolygon(rrectPoly.begin(), rrectPoly.count(), 55, &offsetPoly); in DEF_TEST()
61 REPORTER_ASSERT(reporter, !SkIsConvexPolygon(offsetPoly.begin(), offsetPoly.count())); in DEF_TEST()
62 REPORTER_ASSERT(reporter, offsetPoly.count() == 2); in DEF_TEST()
63 if (offsetPoly.count() == 2) { in DEF_TEST()
64 REPORTER_ASSERT(reporter, offsetPoly[0].equals(-50, 0)); in DEF_TEST()
65 REPORTER_ASSERT(reporter, offsetPoly[1].equals(50, 0)); in DEF_TEST()
69 result = SkOffsetSimplePolygon(rrectPoly.begin(), rrectPoly.count(), 75, &offsetPoly); in DEF_TEST()
105 &offsetPoly); in DEF_TEST()
107 REPORTER_ASSERT(reporter, SkIsConvexPolygon(offsetPoly.begin(), offsetPoly.count())); in DEF_TEST()
129 &offsetPoly); in DEF_TEST()
131 REPORTER_ASSERT(reporter, SkIsSimplePolygon(offsetPoly.begin(), offsetPoly.count())); in DEF_TEST()
134 &offsetPoly); in DEF_TEST()
136 REPORTER_ASSERT(reporter, SkIsSimplePolygon(offsetPoly.begin(), offsetPoly.count())); in DEF_TEST()
139 &offsetPoly); in DEF_TEST()
141 REPORTER_ASSERT(reporter, SkIsSimplePolygon(offsetPoly.begin(), offsetPoly.count())); in DEF_TEST()
145 &offsetPoly); in DEF_TEST()
150 &offsetPoly); in DEF_TEST()
155 &offsetPoly); in DEF_TEST()
157 REPORTER_ASSERT(reporter, SkIsSimplePolygon(offsetPoly.begin(), offsetPoly.count())); in DEF_TEST()
160 &offsetPoly); in DEF_TEST()
162 REPORTER_ASSERT(reporter, SkIsSimplePolygon(offsetPoly.begin(), offsetPoly.count())); in DEF_TEST()
165 &offsetPoly); in DEF_TEST()
167 REPORTER_ASSERT(reporter, SkIsSimplePolygon(offsetPoly.begin(), offsetPoly.count())); in DEF_TEST()
170 &offsetPoly); in DEF_TEST()
172 REPORTER_ASSERT(reporter, SkIsSimplePolygon(offsetPoly.begin(), offsetPoly.count())); in DEF_TEST()