Lines Matching defs:src

17 #include "src/core/SkBuffer.h"
18 #include "src/core/SkCubicClipper.h"
19 #include "src/core/SkGeometry.h"
20 #include "src/core/SkMatrixPriv.h"
21 #include "src/core/SkPathMakers.h"
22 #include "src/core/SkPathPriv.h"
23 #include "src/core/SkPointPriv.h"
24 #include "src/core/SkSafeMath.h"
25 #include "src/core/SkTLazy.h"
27 #include "src/pathops/SkPathOpsPoint.h"
56 static void joinNoEmptyChecks(SkRect* dst, const SkRect& src) {
57 dst->fLeft = std::min(dst->fLeft, src.fLeft);
58 dst->fTop = std::min(dst->fTop, src.fTop);
59 dst->fRight = std::max(dst->fRight, src.fRight);
60 dst->fBottom = std::max(dst->fBottom, src.fBottom);
844 #include "src/core/SkGeometry.h"
1380 const SkPath* src = &srcPath;
1382 if (this == src) {
1383 src = tmp.set(srcPath);
1387 fLastMoveToIndex = this->countPoints() + src->fLastMoveToIndex;
1390 auto [newPts, newWeights] = ed.growForVerbsInPath(*src->fPathRef);
1391 matrix.mapPoints(newPts, src->fPathRef->points(), src->countPoints());
1392 if (int numWeights = src->fPathRef->countWeights()) {
1393 memcpy(newWeights, src->fPathRef->conicWeights(), numWeights * sizeof(newWeights[0]));
1404 for (auto [verb, pts, w] : SkPathPriv::Iterate(*src)) {
1491 const SkPath* src = &srcPath;
1493 if (this == src) {
1494 src = tmp.set(srcPath);
1497 const uint8_t* verbsBegin = src->fPathRef->verbsBegin();
1498 const uint8_t* verbs = src->fPathRef->verbsEnd();
1499 const SkPoint* pts = src->fPathRef->pointsEnd();
1500 const SkScalar* conicWeights = src->fPathRef->conicWeightsEnd();
1585 const SkPath* src = this;
1589 src = &clipped;
1592 SkPath::Iter iter(*src, false);
1863 #include "src/core/SkStringUtils.h"
2711 static double conic_eval_numerator(const SkScalar src[], SkScalar w, SkScalar t) {
2712 SkASSERT(src);
2714 SkScalar src2w = src[2] * w;
2715 SkScalar C = src[0];
2716 SkScalar A = src[4] - 2 * src2w + C;
3291 static int compute_quad_extremas(const SkPoint src[3], SkPoint extremas[3]) {
3293 int n = SkFindQuadExtrema(src[0].fX, src[1].fX, src[2].fX, ts);
3294 n += SkFindQuadExtrema(src[0].fY, src[1].fY, src[2].fY, &ts[n]);
3297 extremas[i] = SkEvalQuadAt(src, ts[i]);
3299 extremas[n] = src[2];
3303 static int compute_conic_extremas(const SkPoint src[3], SkScalar w, SkPoint extremas[3]) {
3304 SkConic conic(src[0], src[1], src[2], w);
3312 extremas[n] = src[2];
3316 static int compute_cubic_extremas(const SkPoint src[4], SkPoint extremas[5]) {
3318 int n = SkFindCubicExtrema(src[0].fX, src[1].fX, src[2].fX, src[3].fX, ts);
3319 n += SkFindCubicExtrema(src[0].fY, src[1].fY, src[2].fY, src[3].fY, &ts[n]);
3322 SkEvalCubicAt(src, ts[i], &extremas[i], nullptr, nullptr);
3324 extremas[n] = src[3];
3680 #include "src/core/SkEdgeClipper.h"