Lines Matching defs:fPositions

33                                     fPositions.begin(), nullptr, fColors.begin(),
40 int vertexCount() const { return fPositions.count(); }
71 SkTDArray<SkPoint> fPositions;
247 *fPositions.push() = fPrevPoint + currNormal;
250 *fIndices.push() = fPositions.count() - 2;
251 *fIndices.push() = fPositions.count() - 1;
256 *fPositions.push() = fPrevPoint + nextNormal;
259 *fIndices.push() = fPositions.count() - 2;
260 *fIndices.push() = fPositions.count() - 1;
377 fPositions.setReserve(4 * path.countPoints());
389 *fPositions.push() = SkPoint::Make(0, 0);
432 fFirstPoint.distanceToSqd(fPositions[fPrevUmbraIndex]) > kMaxEdgeLenSqr) {
433 SkPoint centerPoint = fPositions[fPrevUmbraIndex] + fFirstPoint;
435 *fPositions.push() = centerPoint;
439 *fPositions.push() = centerPoint + midNormal;
443 *fIndices.push() = fPositions.count() - 3;
444 *fIndices.push() = fPositions.count() - 2;
446 *fIndices.push() = fPositions.count() - 3;
447 *fIndices.push() = fPositions.count() - 1;
448 *fIndices.push() = fPositions.count() - 2;
450 fPrevUmbraIndex = fPositions.count() - 2;
454 *fPositions.push() = fFirstPoint + normal;
459 *fIndices.push() = fPositions.count() - 2;
462 *fIndices.push() = fPositions.count() - 2;
463 *fIndices.push() = fPositions.count() - 1;
467 *fIndices.push() = fPositions.count() - 2;
468 *fIndices.push() = fPositions.count() - 1;
471 *fIndices.push() = fPositions.count() - 1;
479 fPositions[0] *= SkScalarFastInvert(fCentroidCount);
487 if (fPositions.count() >= 3) {
494 *fIndices.push() = fPositions.count() - 1;
529 fFirstVertex = fPositions.count();
538 *fPositions.push() = fFirstPoint;
540 *fPositions.push() = fFirstPoint + fFirstNormal;
543 fPositions[0] += fFirstPoint;
559 if (compute_normal(fPositions[fPrevUmbraIndex], p, fDirection, &normal)) {
574 nextPoint.distanceToSqd(fPositions[fPrevUmbraIndex]) > kMaxEdgeLenSqr) {
575 SkPoint centerPoint = fPositions[fPrevUmbraIndex] + nextPoint;
577 *fPositions.push() = centerPoint;
581 *fPositions.push() = centerPoint + midNormal;
585 if (fColors[fPrevUmbraIndex] > fColors[fPositions.count() - 2]) {
587 *fIndices.push() = fPositions.count() - 3;
588 *fIndices.push() = fPositions.count() - 2;
590 *fIndices.push() = fPositions.count() - 3;
591 *fIndices.push() = fPositions.count() - 1;
592 *fIndices.push() = fPositions.count() - 2;
595 *fIndices.push() = fPositions.count() - 2;
596 *fIndices.push() = fPositions.count() - 1;
599 *fIndices.push() = fPositions.count() - 1;
600 *fIndices.push() = fPositions.count() - 3;
603 fPrevUmbraIndex = fPositions.count() - 2;
607 *fPositions.push() = nextPoint;
609 *fPositions.push() = nextPoint + nextNormal;
613 if (fColors[fPrevUmbraIndex] > fColors[fPositions.count() - 2]) {
615 *fIndices.push() = fPositions.count() - 3;
616 *fIndices.push() = fPositions.count() - 2;
618 *fIndices.push() = fPositions.count() - 3;
619 *fIndices.push() = fPositions.count() - 1;
620 *fIndices.push() = fPositions.count() - 2;
623 *fIndices.push() = fPositions.count() - 2;
624 *fIndices.push() = fPositions.count() - 1;
627 *fIndices.push() = fPositions.count() - 1;
628 *fIndices.push() = fPositions.count() - 3;
633 fPositions[0] += nextPoint;
638 *fIndices.push() = fPositions.count() - 2;
641 fPrevUmbraIndex = fPositions.count() - 2;
746 fPositions.setReserve(5 * path.countPoints());
799 *fPositions.push() = fCentroid;
843 *fPositions.push() = fFirstPoint + normal;
847 *fIndices.push() = fPositions.count() - 2;
850 *fIndices.push() = fPositions.count() - 2;
851 *fIndices.push() = fPositions.count() - 1;
858 if (fPositions.count() >= 3) {
864 *fIndices.push() = fPositions.count() - 1;
873 for (int i = 0; i < fPositions.count(); ++i) {
874 SkScalar pathZ = fTransformedHeightFunc(fPositions[i]);
876 fPositions[i].fX = (fPositions[i].fX*fLightZ - lightPos.fX*pathZ)*factor;
877 fPositions[i].fY = (fPositions[i].fY*fLightZ - lightPos.fY*pathZ)*factor;
887 *fPositions.push() = fCentroid + SkVector::Make(-2, -2);
889 *fPositions.push() = fCentroid + SkVector::Make(2, -2);
891 *fPositions.push() = fCentroid + SkVector::Make(-2, 2);
893 *fPositions.push() = fCentroid + SkVector::Make(2, 2);
896 *fIndices.push() = fPositions.count() - 4;
897 *fIndices.push() = fPositions.count() - 2;
898 *fIndices.push() = fPositions.count() - 1;
900 *fIndices.push() = fPositions.count() - 4;
901 *fIndices.push() = fPositions.count() - 1;
902 *fIndices.push() = fPositions.count() - 3;
1160 fFirstVertex = fPositions.count();
1169 bool isOutside = this->clipUmbraPoint(fPositions[fFirstVertex], fCentroid, &clipPoint);
1171 *fPositions.push() = clipPoint;
1179 *fPositions.push() = newPoint;
1209 !duplicate_pt(umbraPoint, fPositions[fPrevUmbraIndex])) {
1210 *fPositions.push() = umbraPoint;
1222 int prevPenumbraIndex = duplicate ? fPositions.count()-1 : fPositions.count()-2;
1223 int currUmbraIndex = duplicate ? fPrevUmbraIndex : fPositions.count()-1;
1234 bool isOutside = this->clipUmbraPoint(fPositions[currUmbraIndex], fCentroid,
1237 *fPositions.push() = clipPoint;
1261 *fPositions.push() = newPoint;
1271 *fIndices.push() = fPositions.count() - 1;