Lines Matching refs:SkPoint
50 bool accumulateCentroid(const SkPoint& c, const SkPoint& n);
51 bool checkConvexity(const SkPoint& p0, const SkPoint& p1, const SkPoint& p2);
57 bool clipUmbraPoint(const SkPoint& umbraPoint, const SkPoint& centroid, SkPoint* clipPoint);
59 const SkTDArray<SkPoint>& umbraPolygon, bool lastEdge, bool doClip);
60 bool addInnerPoint(const SkPoint& pathPoint, SkColor umbraColor,
61 const SkTDArray<SkPoint>& umbraPolygon, int* currUmbraIndex);
62 int getClosestUmbraIndex(const SkPoint& point, const SkTDArray<SkPoint>& umbraPolygon);
66 void stitchConcaveRings(const SkTDArray<SkPoint>& umbraPolygon,
68 const SkTDArray<SkPoint>& penumbraPolygon,
71 void handleLine(const SkPoint& p);
72 void handleLine(const SkMatrix& m, SkPoint* p);
74 void handleQuad(const SkPoint pts[3]);
75 void handleQuad(const SkMatrix& m, SkPoint pts[3]);
77 void handleCubic(const SkMatrix& m, SkPoint pts[4]);
79 void handleConic(const SkMatrix& m, SkPoint pts[3], SkScalar w);
93 SkTDArray<SkPoint> fPointBuffer;
95 SkTDArray<SkPoint> fPositions;
99 SkTDArray<SkPoint> fPathPolygon;
100 SkTDArray<SkPoint> fClipPolygon;
104 SkPoint fCentroid;
111 SkPoint fFirstPoint;
125 SkPoint fPrevPoint;
128 static bool compute_normal(const SkPoint& p0, const SkPoint& p1, SkScalar dir,
142 static bool duplicate_pt(const SkPoint& p0, const SkPoint& p1) {
150 static SkScalar perp_dot(const SkPoint& p0, const SkPoint& p1, const SkPoint& p2) {
178 bool SkBaseShadowTessellator::accumulateCentroid(const SkPoint& curr, const SkPoint& next) {
201 bool SkBaseShadowTessellator::checkConvexity(const SkPoint& p0,
202 const SkPoint& p1,
203 const SkPoint& p2) {
263 SkPoint currPoint = fPathPolygon[i];
264 SkPoint nextPoint = fPathPolygon[j];
272 SkTDArray<SkPoint> insetPolygon;
292 const SkTDArray<SkPoint>& umbraPolygon = (inset > SK_ScalarNearlyZero) ? insetPolygon
320 SkPoint clipPoint;
331 SkPoint newPoint = fFirstPoint + fFirstOutset;
399 void SkBaseShadowTessellator::addEdge(const SkPoint& nextPoint, const SkVector& nextNormal,
400 SkColor umbraColor, const SkTDArray<SkPoint>& umbraPolygon,
421 SkPoint clipPoint;
446 SkPoint newPoint = nextPoint + nextNormal;
459 bool SkBaseShadowTessellator::clipUmbraPoint(const SkPoint& umbraPoint, const SkPoint& centroid,
460 SkPoint* clipPoint) {
491 bool SkBaseShadowTessellator::addInnerPoint(const SkPoint& pathPoint, SkColor umbraColor,
492 const SkTDArray<SkPoint>& umbraPolygon,
494 SkPoint umbraPoint;
523 int SkBaseShadowTessellator::getClosestUmbraIndex(const SkPoint& p,
524 const SkTDArray<SkPoint>& umbraPolygon) {
559 SkTDArray<SkPoint> umbraPolygon;
569 SkTDArray<SkPoint> penumbraPolygon;
589 void SkBaseShadowTessellator::stitchConcaveRings(const SkTDArray<SkPoint>& umbraPolygon,
591 const SkTDArray<SkPoint>& penumbraPolygon,
731 static void sanitize_point(const SkPoint& in, SkPoint* out) {
736 void SkBaseShadowTessellator::handleLine(const SkPoint& p) {
737 SkPoint pSanitized;
763 void SkBaseShadowTessellator::handleLine(const SkMatrix& m, SkPoint* p) {
769 void SkBaseShadowTessellator::handleQuad(const SkPoint pts[3]) {
780 SkPoint* target = fPointBuffer.begin();
794 void SkBaseShadowTessellator::handleQuad(const SkMatrix& m, SkPoint pts[3]) {
799 void SkBaseShadowTessellator::handleCubic(const SkMatrix& m, SkPoint pts[4]) {
805 SkPoint* target = fPointBuffer.begin();
820 void SkBaseShadowTessellator::handleConic(const SkMatrix& m, SkPoint pts[3], SkScalar w) {
826 const SkPoint* quads = quadder.computeQuads(pts, w, kConicTolerance);
827 SkPoint lastPoint = *(quads++);
830 SkPoint quadPts[3];
946 SkPoint pts[4];
1059 SkPoint pts[4];
1060 SkPoint clipPts[4];
1069 SkPoint curvePoint;
1139 void SkSpotShadowTessellator::addToClip(const SkPoint& point) {