Home
last modified time | relevance | path

Searched refs:srcPts (Results 1 – 16 of 16) 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.cpp108 bool SkCubicClipper::clipCubic(const SkPoint srcPts[4], SkPoint dst[4]) { in clipCubic()
112 if (srcPts[0].fY > srcPts[3].fY) { in clipCubic()
113 dst[0] = srcPts[3]; in clipCubic()
114 dst[1] = srcPts[2]; in clipCubic()
115 dst[2] = srcPts[1]; in clipCubic()
116 dst[3] = srcPts[0]; in clipCubic()
119 memcpy(dst, srcPts, 4 * sizeof(SkPoint)); in clipCubic()
DSkEdgeClipper.h36 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip);
37 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
DSkQuadClipper.h55 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip);
56 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
DSkEdgeClipper.cpp125 void SkEdgeClipper::clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip) { in clipMonoQuad()
127 bool reverse = sort_increasing_Y(pts, srcPts, 3); in clipMonoQuad()
197 bool SkEdgeClipper::clipQuad(const SkPoint srcPts[3], const SkRect& clip) { in clipQuad()
202 bounds.set(srcPts, 3); in clipQuad()
206 int countY = SkChopQuadAtYExtrema(srcPts, monoY); in clipQuad()
405 bool SkEdgeClipper::clipCubic(const SkPoint srcPts[4], const SkRect& clip) { in clipCubic()
410 bounds.set(srcPts, 4); in clipCubic()
414 int countY = SkChopCubicAtYExtrema(srcPts, monoY); in clipCubic()
DSkPath.cpp1924 const SkPoint* SK_RESTRICT srcPts = fPts; in doNext() local
1940 fMoveTo = *srcPts; in doNext()
1941 pts[0] = *srcPts; in doNext()
1942 srcPts += 1; in doNext()
1949 pts[1] = srcPts[0]; in doNext()
1950 fLastPt = srcPts[0]; in doNext()
1952 srcPts += 1; in doNext()
1959 memcpy(&pts[1], srcPts, 2 * sizeof(SkPoint)); in doNext()
1960 fLastPt = srcPts[1]; in doNext()
1961 srcPts += 2; in doNext()
[all …]
/external/chromium_org/third_party/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.cpp108 bool SkCubicClipper::clipCubic(const SkPoint srcPts[4], SkPoint dst[4]) { in clipCubic()
112 if (srcPts[0].fY > srcPts[3].fY) { in clipCubic()
113 dst[0] = srcPts[3]; in clipCubic()
114 dst[1] = srcPts[2]; in clipCubic()
115 dst[2] = srcPts[1]; in clipCubic()
116 dst[3] = srcPts[0]; in clipCubic()
119 memcpy(dst, srcPts, 4 * sizeof(SkPoint)); in clipCubic()
DSkEdgeClipper.h36 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip);
37 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
DSkQuadClipper.h55 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip);
56 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
DSkEdgeClipper.cpp125 void SkEdgeClipper::clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip) { in clipMonoQuad()
127 bool reverse = sort_increasing_Y(pts, srcPts, 3); in clipMonoQuad()
197 bool SkEdgeClipper::clipQuad(const SkPoint srcPts[3], const SkRect& clip) { in clipQuad()
202 bounds.set(srcPts, 3); in clipQuad()
206 int countY = SkChopQuadAtYExtrema(srcPts, monoY); in clipQuad()
405 bool SkEdgeClipper::clipCubic(const SkPoint srcPts[4], const SkRect& clip) { in clipCubic()
410 bounds.set(srcPts, 4); in clipCubic()
414 int countY = SkChopCubicAtYExtrema(srcPts, monoY); in clipCubic()
DSkPath.cpp1924 const SkPoint* SK_RESTRICT srcPts = fPts; in doNext() local
1940 fMoveTo = *srcPts; in doNext()
1941 pts[0] = *srcPts; in doNext()
1942 srcPts += 1; in doNext()
1949 pts[1] = srcPts[0]; in doNext()
1950 fLastPt = srcPts[0]; in doNext()
1952 srcPts += 1; in doNext()
1959 memcpy(&pts[1], srcPts, 2 * sizeof(SkPoint)); in doNext()
1960 fLastPt = srcPts[1]; in doNext()
1961 srcPts += 2; in doNext()
[all …]
/external/chromium_org/third_party/skia/src/animator/
DSkMatrixParts.cpp243 int srcPts = sourcePath.getPoints(src, 4); in add() local
246 if (srcPts != dstPts) in add()
249 temp.setPolyToPoly(src, dst, srcPts); in add()
/external/skia/src/animator/
DSkMatrixParts.cpp243 int srcPts = sourcePath.getPoints(src, 4); in add() local
246 if (srcPts != dstPts) in add()
249 temp.setPolyToPoly(src, dst, srcPts); in add()
/external/skia/tests/
DPathTest.cpp709 const SkPoint srcPts[], bool expectClose) { in test_poly() argument
719 REPORTER_ASSERT(reporter, pts[0] == srcPts[0]); in test_poly()
720 srcPts++; in test_poly()
725 REPORTER_ASSERT(reporter, pts[1] == srcPts[0]); in test_poly()
726 srcPts++; in test_poly()
/external/chromium_org/third_party/skia/tests/
DPathTest.cpp709 const SkPoint srcPts[], bool expectClose) { in test_poly() argument
719 REPORTER_ASSERT(reporter, pts[0] == srcPts[0]); in test_poly()
720 srcPts++; in test_poly()
725 REPORTER_ASSERT(reporter, pts[1] == srcPts[0]); in test_poly()
726 srcPts++; in test_poly()