Home
last modified time | relevance | path

Searched refs:srcPts (Results 1 - 12 of 12) sorted by relevance

/third_party/skia/src/core/
H A DSkQuadClipper.cpp53 bool SkQuadClipper::clipQuad(const SkPoint srcPts[3], SkPoint dst[3]) { in clipQuad() argument
57 if (srcPts[0].fY > srcPts[2].fY) { in clipQuad()
58 dst[0] = srcPts[2]; in clipQuad()
59 dst[1] = srcPts[1]; in clipQuad()
60 dst[2] = srcPts[0]; in clipQuad()
63 memcpy(dst, srcPts, 3 * sizeof(SkPoint)); in clipQuad()
H A DSkCubicClipper.cpp109 bool SkCubicClipper::clipCubic(const SkPoint srcPts[4], SkPoint dst[4]) { in clipCubic() argument
113 if (srcPts[0].fY > srcPts[3].fY) { in clipCubic()
114 dst[0] = srcPts[3]; in clipCubic()
115 dst[1] = srcPts[2]; in clipCubic()
116 dst[2] = srcPts[1]; in clipCubic()
117 dst[3] = srcPts[0]; in clipCubic()
120 memcpy(dst, srcPts, 4 * sizeof(SkPoint)); in clipCubic()
H A DSkPathRef.cpp587 const SkPoint* srcPts = fPts;
591 pts[0] = srcPts[0];
592 srcPts += 1;
595 pts[0] = srcPts[-1];
596 pts[1] = srcPts[0];
597 srcPts += 1;
603 pts[0] = srcPts[-1];
604 pts[1] = srcPts[0];
605 pts[2] = srcPts[1];
606 srcPts
[all...]
H A DSkEdgeClipper.cpp143 // srcPts[] must be monotonic in X and Y
144 void SkEdgeClipper::clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip) { in clipMonoQuad() argument
146 bool reverse = sort_increasing_Y(pts, srcPts, 3); in clipMonoQuad()
221 bool SkEdgeClipper::clipQuad(const SkPoint srcPts[3], const SkRect& clip) { in clipQuad() argument
226 bounds.setBounds(srcPts, 3); in clipQuad()
230 int countY = SkChopQuadAtYExtrema(srcPts, monoY); in clipQuad()
336 // srcPts[] must be monotonic in X and Y
417 bool SkEdgeClipper::clipCubic(const SkPoint srcPts[4], const SkRect& clip) { in clipCubic() argument
421 const SkRect bounds = compute_cubic_bounds(srcPts); in clipCubic()
431 return this->clipLine(srcPts[ in clipCubic()
[all...]
H A DSkEdgeClipper.h48 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip);
49 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
H A DSkQuadClipper.h54 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip);
55 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
H A DSkPath.cpp1167 SkPoint srcPts[2]; in arcTo() local
1168 this->getLastPt(&srcPts[0]); in arcTo()
1177 srcPts[1].set(x, y); in arcTo()
1178 if (srcPts[0] == srcPts[1]) { in arcTo()
1183 SkVector midPointDistance = srcPts[0] - srcPts[1]; in arcTo()
1209 pointTransform.mapPoints(unitPts, srcPts, (int) SK_ARRAY_COUNT(unitPts)); in arcTo()
1773 const SkPoint* SK_RESTRICT srcPts = fPts; in next() local
1789 fMoveTo = *srcPts; in next()
[all...]
H A DSkPathBuilder.cpp458 SkPoint srcPts[2] = { fPts.back(), endPt }; in arcTo() local
468 if (srcPts[0] == srcPts[1]) { in arcTo()
473 SkVector midPointDistance = srcPts[0] - srcPts[1]; in arcTo()
499 pointTransform.mapPoints(unitPts, srcPts, (int) SK_ARRAY_COUNT(unitPts)); in arcTo()
/third_party/skia/src/gpu/geometry/
H A DGrAAConvexTessellator.cpp967 void GrAAConvexTessellator::quadTo(const SkMatrix& m, const SkPoint srcPts[3]) {
969 m.mapPoints(pts, srcPts, 3);
973 void GrAAConvexTessellator::cubicTo(const SkMatrix& m, const SkPoint srcPts[4]) {
975 m.mapPoints(pts, srcPts, 4);
991 void GrAAConvexTessellator::conicTo(const SkMatrix& m, const SkPoint srcPts[3], SkScalar w) {
993 m.mapPoints(pts, srcPts, 3);
/third_party/skia/src/gpu/ops/
H A DTextureOp.cpp551 SkPoint srcPts[4]; in TextureOpImpl() local
552 GrMapRectPoints(set[q].fDstRect, set[q].fSrcRect, set[q].fDstClipQuad, srcPts, 4); in TextureOpImpl()
553 quad.fLocal = GrQuad::MakeFromSkQuad(srcPts, SkMatrix::I()); in TextureOpImpl()
1292 SkPoint srcPts[4]; in AddTextureSetOps() local
1293 GrMapRectPoints(set[i].fDstRect, set[i].fSrcRect, set[i].fDstClipQuad, srcPts, 4); in AddTextureSetOps()
1294 quad.fLocal = GrQuad::MakeFromSkQuad(srcPts, SkMatrix::I()); in AddTextureSetOps()
H A DAAHairLinePathRenderer.cpp280 auto addChoppedQuad = [&](const SkPoint srcPts[3], const SkPoint devPts[4], in gather_lines_and_quads()
288 SkASSERT(srcPts || !persp); in gather_lines_and_quads()
304 const SkPoint* qPts = persp ? srcPts : devPts; in gather_lines_and_quads()
/third_party/skia/tests/
H A DPathTest.cpp974 const SkPoint srcPts[], bool expectClose) { in test_poly()
981 REPORTER_ASSERT(reporter, pts[0] == srcPts[0]); in test_poly()
982 srcPts++; in test_poly()
987 REPORTER_ASSERT(reporter, pts[1] == srcPts[0]); in test_poly()
988 srcPts++; in test_poly()
973 test_poly(skiatest::Reporter* reporter, const SkPath& path, const SkPoint srcPts[], bool expectClose) test_poly() argument

Completed in 25 milliseconds