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

/external/skia/src/core/
H A DSkQuadClipper.cpp51 bool SkQuadClipper::clipQuad(const SkPoint srcPts[3], SkPoint dst[3]) { argument
55 if (srcPts[0].fY > srcPts[2].fY) {
56 dst[0] = srcPts[2];
57 dst[1] = srcPts[1];
58 dst[2] = srcPts[0];
61 memcpy(dst, srcPts, 3 * sizeof(SkPoint));
H A DSkCubicClipper.cpp108 bool SkCubicClipper::clipCubic(const SkPoint srcPts[4], SkPoint dst[4]) { argument
112 if (srcPts[0].fY > srcPts[3].fY) {
113 dst[0] = srcPts[3];
114 dst[1] = srcPts[2];
115 dst[2] = srcPts[1];
116 dst[3] = srcPts[0];
119 memcpy(dst, srcPts, 4 * sizeof(SkPoint));
H A DSkEdgeClipper.h41 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip);
42 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
H A DSkQuadClipper.h55 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip);
56 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
H A DSkPathRef.cpp561 const SkPoint* srcPts = fPts;
565 pts[0] = srcPts[0];
566 srcPts += 1;
569 pts[0] = srcPts[-1];
570 pts[1] = srcPts[0];
571 srcPts += 1;
577 pts[0] = srcPts[-1];
578 pts[1] = srcPts[0];
579 pts[2] = srcPts[1];
580 srcPts
[all...]
H A DSkEdgeClipper.cpp124 // srcPts[] must be monotonic in X and Y
125 void SkEdgeClipper::clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip) { argument
127 bool reverse = sort_increasing_Y(pts, srcPts, 3);
199 bool SkEdgeClipper::clipQuad(const SkPoint srcPts[3], const SkRect& clip) { argument
204 bounds.set(srcPts, 3);
208 int countY = SkChopQuadAtYExtrema(srcPts, monoY);
298 // srcPts[] must be monotonic in X and Y
369 bool SkEdgeClipper::clipCubic(const SkPoint srcPts[4], const SkRect& clip) { argument
373 if (!quick_reject_in_y(srcPts, clip)) {
375 int countY = SkChopCubicAtYExtrema(srcPts, mono
[all...]
H A DSkPath.cpp1315 SkPoint srcPts[2]; local
1316 this->getLastPt(&srcPts[0]);
1326 srcPts[1].set(x, y);
1327 if (srcPts[0] == srcPts[1]) {
1333 SkVector midPointDistance = srcPts[0] - srcPts[1];
1359 pointTransform.mapPoints(unitPts, srcPts, (int) SK_ARRAY_COUNT(unitPts));
1944 const SkPoint* SK_RESTRICT srcPts = fPts; local
1960 fMoveTo = *srcPts;
[all...]
/external/skia/src/animator/
H A DSkMatrixParts.cpp243 int srcPts = sourcePath.getPoints(src, 4); local
246 if (srcPts != dstPts)
249 temp.setPolyToPoly(src, dst, srcPts);
/external/skia/tests/
H A DPathTest.cpp846 const SkPoint srcPts[], bool expectClose) {
856 REPORTER_ASSERT(reporter, pts[0] == srcPts[0]);
857 srcPts++;
862 REPORTER_ASSERT(reporter, pts[1] == srcPts[0]);
863 srcPts++;
845 test_poly(skiatest::Reporter* reporter, const SkPath& path, const SkPoint srcPts[], bool expectClose) argument

Completed in 639 milliseconds