Home
last modified time | relevance | path

Searched refs:srcPts (Results 1 – 8 of 8) sorted by relevance

/external/skia/src/core/
DSkQuadClipper.cpp51 bool SkQuadClipper::clipQuad(const SkPoint srcPts[3], SkPoint dst[3]) { in clipQuad()
55 if (srcPts[0].fY > srcPts[2].fY) { in clipQuad()
56 dst[0] = srcPts[2]; in clipQuad()
57 dst[1] = srcPts[1]; in clipQuad()
58 dst[2] = srcPts[0]; in clipQuad()
61 memcpy(dst, srcPts, 3 * sizeof(SkPoint)); in clipQuad()
DSkCubicClipper.cpp107 bool SkCubicClipper::clipCubic(const SkPoint srcPts[4], SkPoint dst[4]) { in clipCubic()
111 if (srcPts[0].fY > srcPts[3].fY) { in clipCubic()
112 dst[0] = srcPts[3]; in clipCubic()
113 dst[1] = srcPts[2]; in clipCubic()
114 dst[2] = srcPts[1]; in clipCubic()
115 dst[3] = srcPts[0]; in clipCubic()
118 memcpy(dst, srcPts, 4 * sizeof(SkPoint)); in clipCubic()
DSkPathRef.cpp689 const SkPoint* srcPts = fPts; in next() local
693 pts[0] = srcPts[0]; in next()
694 srcPts += 1; in next()
697 pts[0] = srcPts[-1]; in next()
698 pts[1] = srcPts[0]; in next()
699 srcPts += 1; in next()
705 pts[0] = srcPts[-1]; in next()
706 pts[1] = srcPts[0]; in next()
707 pts[2] = srcPts[1]; in next()
708 srcPts += 2; in next()
[all …]
DSkEdgeClipper.cpp142 void SkEdgeClipper::clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip) { in clipMonoQuad()
144 bool reverse = sort_increasing_Y(pts, srcPts, 3); in clipMonoQuad()
216 bool SkEdgeClipper::clipQuad(const SkPoint srcPts[3], const SkRect& clip) { in clipQuad()
221 bounds.set(srcPts, 3); in clipQuad()
225 int countY = SkChopQuadAtYExtrema(srcPts, monoY); in clipQuad()
411 bool SkEdgeClipper::clipCubic(const SkPoint srcPts[4], const SkRect& clip) { in clipCubic()
415 const SkRect bounds = compute_cubic_bounds(srcPts); in clipCubic()
425 return this->clipLine(srcPts[0], srcPts[3], clip); in clipCubic()
428 int countY = SkChopCubicAtYExtrema(srcPts, monoY); in clipCubic()
DSkQuadClipper.h54 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip);
55 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
DSkEdgeClipper.h41 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip);
42 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
DSkPath.cpp1338 SkPoint srcPts[2]; in arcTo() local
1339 this->getLastPt(&srcPts[0]); in arcTo()
1349 srcPts[1].set(x, y); in arcTo()
1350 if (srcPts[0] == srcPts[1]) { in arcTo()
1356 SkVector midPointDistance = srcPts[0] - srcPts[1]; in arcTo()
1382 pointTransform.mapPoints(unitPts, srcPts, (int) SK_ARRAY_COUNT(unitPts)); in arcTo()
1973 const SkPoint* SK_RESTRICT srcPts = fPts; in doNext() local
1989 fMoveTo = *srcPts; in doNext()
1990 pts[0] = *srcPts; in doNext()
1991 srcPts += 1; in doNext()
[all …]
/external/skia/tests/
DPathTest.cpp1004 const SkPoint srcPts[], bool expectClose) { in test_poly() argument
1014 REPORTER_ASSERT(reporter, pts[0] == srcPts[0]); in test_poly()
1015 srcPts++; in test_poly()
1020 REPORTER_ASSERT(reporter, pts[1] == srcPts[0]); in test_poly()
1021 srcPts++; in test_poly()