Lines Matching defs:path

14 static SkRRect path_contains_rrect(skiatest::Reporter* reporter, const SkPath& path,
17 REPORTER_ASSERT(reporter, SkPathPriv::IsRRect(path, &out, dir, start));
20 REPORTER_ASSERT(reporter, path == recreatedPath);
21 // Test that rotations/mirrors of the rrect path are still rrect paths and the returned
31 path.transform(m, &xformed);
53 SkPath path;
54 path.addRRect(in, dir, start);
57 SkRRect rrect = path_contains_rrect(reporter, path, &outDir, &outStart);
88 ForceIsRRect_Private(SkPath* path, SkPathDirection dir, unsigned start) {
89 path->fPathRef->setIsRRect(true, dir == SkPathDirection::kCCW, start);
93 static void force_path_contains_rrect(skiatest::Reporter* reporter, SkPath& path,
95 ForceIsRRect_Private force_rrect(&path, dir, start);
98 path_contains_rrect(reporter, path, &outDir, &outStart);
112 SkPath path;
113 path.moveTo(0, 62.5f);
114 path.lineTo(0, 3.5f);
115 path.conicTo(0, 0, 3.5f, 0, weight);
116 path.lineTo(196.5f, 0);
117 path.conicTo(200, 0, 200, 3.5f, weight);
118 path.lineTo(200, 62.5f);
119 path.conicTo(200, 66, 196.5f, 66, weight);
120 path.lineTo(3.5f, 66);
121 path.conicTo(0, 66, 0, 62.5, weight);
122 path.close();
123 force_path_contains_rrect(reporter, path, SkPathDirection::kCW, 6);
125 path.reset();
126 path.moveTo(0, 81.5f);
127 path.lineTo(0, 3.5f);
128 path.conicTo(0, 0, 3.5f, 0, weight);
129 path.lineTo(149.5, 0);
130 path.conicTo(153, 0, 153, 3.5f, weight);
131 path.lineTo(153, 81.5f);
132 path.conicTo(153, 85, 149.5f, 85, weight);
133 path.lineTo(3.5f, 85);
134 path.conicTo(0, 85, 0, 81.5f, weight);
135 path.close();
136 force_path_contains_rrect(reporter, path, SkPathDirection::kCW, 6);
138 path.reset();
139 path.moveTo(14, 1189);
140 path.lineTo(14, 21);
141 path.conicTo(14, 14, 21, 14, weight);
142 path.lineTo(1363, 14);
143 path.conicTo(1370, 14, 1370, 21, weight);
144 path.lineTo(1370, 1189);
145 path.conicTo(1370, 1196, 1363, 1196, weight);
146 path.lineTo(21, 1196);
147 path.conicTo(14, 1196, 14, 1189, weight);
148 path.close();
149 force_path_contains_rrect(reporter, path, SkPathDirection::kCW, 6);
151 path.reset();
152 path.moveTo(14, 1743);
153 path.lineTo(14, 21);
154 path.conicTo(14, 14, 21, 14, weight);
155 path.lineTo(1363, 14);
156 path.conicTo(1370, 14, 1370, 21, weight);
157 path.lineTo(1370, 1743);
158 path.conicTo(1370, 1750, 1363, 1750, weight);
159 path.lineTo(21, 1750);
160 path.conicTo(14, 1750, 14, 1743, weight);
161 path.close();
162 force_path_contains_rrect(reporter, path, SkPathDirection::kCW, 6);