• Home
  • Raw
  • Download

Lines Matching refs:points

35     void addCommand(SkPath* outPath, char previousCmd, char cmd, const std::vector<float>* points,
72 resolver.addCommand(outPath, previousCommand, data.verbs[i], &data.points, start, in verbsToPath()
90 outData->points.resize(from.points.size()); in interpolatePaths()
94 for (size_t i = 0; i < from.points.size(); i++) { in interpolatePaths()
95 outData->points[i] = from.points[i] * (1 - fraction) + to.points[i] * fraction; in interpolatePaths()
101 const std::vector<float>* points, size_t start, size_t end) { in addCommand() argument
152 currentX += points->at(k + 0); in addCommand()
153 currentY += points->at(k + 1); in addCommand()
158 outPath->rLineTo(points->at(k + 0), points->at(k + 1)); in addCommand()
160 outPath->rMoveTo(points->at(k + 0), points->at(k + 1)); in addCommand()
166 currentX = points->at(k + 0); in addCommand()
167 currentY = points->at(k + 1); in addCommand()
172 outPath->lineTo(points->at(k + 0), points->at(k + 1)); in addCommand()
174 outPath->moveTo(points->at(k + 0), points->at(k + 1)); in addCommand()
180 outPath->rLineTo(points->at(k + 0), points->at(k + 1)); in addCommand()
181 currentX += points->at(k + 0); in addCommand()
182 currentY += points->at(k + 1); in addCommand()
185 outPath->lineTo(points->at(k + 0), points->at(k + 1)); in addCommand()
186 currentX = points->at(k + 0); in addCommand()
187 currentY = points->at(k + 1); in addCommand()
190 outPath->rLineTo(points->at(k + 0), 0); in addCommand()
191 currentX += points->at(k + 0); in addCommand()
194 outPath->lineTo(points->at(k + 0), currentY); in addCommand()
195 currentX = points->at(k + 0); in addCommand()
198 outPath->rLineTo(0, points->at(k + 0)); in addCommand()
199 currentY += points->at(k + 0); in addCommand()
202 outPath->lineTo(currentX, points->at(k + 0)); in addCommand()
203 currentY = points->at(k + 0); in addCommand()
206 outPath->rCubicTo(points->at(k + 0), points->at(k + 1), points->at(k + 2), in addCommand()
207 points->at(k + 3), points->at(k + 4), points->at(k + 5)); in addCommand()
209 ctrlPointX = currentX + points->at(k + 2); in addCommand()
210 ctrlPointY = currentY + points->at(k + 3); in addCommand()
211 currentX += points->at(k + 4); in addCommand()
212 currentY += points->at(k + 5); in addCommand()
216 outPath->cubicTo(points->at(k + 0), points->at(k + 1), points->at(k + 2), in addCommand()
217 points->at(k + 3), points->at(k + 4), points->at(k + 5)); in addCommand()
218 currentX = points->at(k + 4); in addCommand()
219 currentY = points->at(k + 5); in addCommand()
220 ctrlPointX = points->at(k + 2); in addCommand()
221 ctrlPointY = points->at(k + 3); in addCommand()
231 outPath->rCubicTo(reflectiveCtrlPointX, reflectiveCtrlPointY, points->at(k + 0), in addCommand()
232 points->at(k + 1), points->at(k + 2), points->at(k + 3)); in addCommand()
233 ctrlPointX = currentX + points->at(k + 0); in addCommand()
234 ctrlPointY = currentY + points->at(k + 1); in addCommand()
235 currentX += points->at(k + 2); in addCommand()
236 currentY += points->at(k + 3); in addCommand()
246 outPath->cubicTo(reflectiveCtrlPointX, reflectiveCtrlPointY, points->at(k + 0), in addCommand()
247 points->at(k + 1), points->at(k + 2), points->at(k + 3)); in addCommand()
248 ctrlPointX = points->at(k + 0); in addCommand()
249 ctrlPointY = points->at(k + 1); in addCommand()
250 currentX = points->at(k + 2); in addCommand()
251 currentY = points->at(k + 3); in addCommand()
254 outPath->rQuadTo(points->at(k + 0), points->at(k + 1), points->at(k + 2), in addCommand()
255 points->at(k + 3)); in addCommand()
256 ctrlPointX = currentX + points->at(k + 0); in addCommand()
257 ctrlPointY = currentY + points->at(k + 1); in addCommand()
258 currentX += points->at(k + 2); in addCommand()
259 currentY += points->at(k + 3); in addCommand()
262 outPath->quadTo(points->at(k + 0), points->at(k + 1), points->at(k + 2), in addCommand()
263 points->at(k + 3)); in addCommand()
264 ctrlPointX = points->at(k + 0); in addCommand()
265 ctrlPointY = points->at(k + 1); in addCommand()
266 currentX = points->at(k + 2); in addCommand()
267 currentY = points->at(k + 3); in addCommand()
277 outPath->rQuadTo(reflectiveCtrlPointX, reflectiveCtrlPointY, points->at(k + 0), in addCommand()
278 points->at(k + 1)); in addCommand()
281 currentX += points->at(k + 0); in addCommand()
282 currentY += points->at(k + 1); in addCommand()
292 outPath->quadTo(reflectiveCtrlPointX, reflectiveCtrlPointY, points->at(k + 0), in addCommand()
293 points->at(k + 1)); in addCommand()
296 currentX = points->at(k + 0); in addCommand()
297 currentY = points->at(k + 1); in addCommand()
301 outPath->arcTo(points->at(k + 0), points->at(k + 1), points->at(k + 2), in addCommand()
302 (SkPath::ArcSize) (points->at(k + 3) != 0), in addCommand()
303 (SkPathDirection) (points->at(k + 4) == 0), in addCommand()
304 points->at(k + 5) + currentX, points->at(k + 6) + currentY); in addCommand()
305 currentX += points->at(k + 5); in addCommand()
306 currentY += points->at(k + 6); in addCommand()
311 outPath->arcTo(points->at(k + 0), points->at(k + 1), points->at(k + 2), in addCommand()
312 (SkPath::ArcSize) (points->at(k + 3) != 0), in addCommand()
313 (SkPathDirection) (points->at(k + 4) == 0), in addCommand()
314 points->at(k + 5), points->at(k + 6)); in addCommand()
315 currentX = points->at(k + 5); in addCommand()
316 currentY = points->at(k + 6); in addCommand()