• Home
  • Raw
  • Download

Lines Matching refs:SkPoint

25                               const SkPoint& p0, const SkPoint& p1) {  in draw_extended_line()
37 SkPoint m = (p0 + p1) * 0.5f; in draw_extended_line()
41 static void make_aa_line(const SkPoint& p0, const SkPoint& p1, bool aaOn, in make_aa_line()
42 bool outset, SkPoint line[2]) { in make_aa_line()
55 static SkScalar signed_distance(const SkPoint& p, const SkPoint& l0, const SkPoint& l1) { in signed_distance()
63 static SkScalar get_area_coverage(const bool edgeAA[4], const SkPoint corners[4], in get_area_coverage()
64 const SkPoint& point) { in get_area_coverage()
78 SkPoint p0 = intersection.getPoint(i); in get_area_coverage()
79 SkPoint p1 = intersection.getPoint((i + 1) % intersection.countPoints()); in get_area_coverage()
93 SkPoint e0 = corners[i]; in get_area_coverage()
94 SkPoint e1 = corners[(i + 1) % 4]; in get_area_coverage()
116 static SkScalar get_edge_dist_coverage(const bool edgeAA[4], const SkPoint corners[4], in get_edge_dist_coverage()
117 const SkPoint outsetLines[8], const SkPoint insetLines[8], in get_edge_dist_coverage()
118 const SkPoint& point) { in get_edge_dist_coverage()
136 const SkPoint* lines = flip ? insetLines : outsetLines; in get_edge_dist_coverage()
155 static bool inside_triangle(const SkPoint& point, const SkPoint& t0, const SkPoint& t1, in inside_triangle()
156 const SkPoint& t2, SkScalar bary[3]) { in inside_triangle()
193 static SkScalar get_framed_coverage(const SkPoint outer[4], const SkScalar outerCoverages[4], in get_framed_coverage()
194 const SkPoint inner[4], const SkScalar innerCoverages[4], in get_framed_coverage()
195 const SkRect& geomDomain, const SkPoint& point) { in get_framed_coverage()
212 SkPoint t0 = i0 >= 4 ? inner[i0 - 4] : outer[i0]; in get_framed_coverage()
213 SkPoint t1 = i1 >= 4 ? inner[i1 - 4] : outer[i1]; in get_framed_coverage()
214 SkPoint t2 = i2 >= 4 ? inner[i2 - 4] : outer[i2]; in get_framed_coverage()
278 SkPoint outsets[8]; in draw()
279 SkPoint insets[8]; in draw()
287 SkPoint gpuOutset[4]; in draw()
289 SkPoint gpuInset[4]; in draw()
304 SkPoint pixelCenter = {px + 0.5f, py + 0.5f}; in draw()
404 SkPoint fCorners[4]; // TL, TR, BR, BL
414 void getTessellatedPoints(SkPoint inset[4], SkScalar insetCoverage[4], SkPoint outset[4], in getTessellatedPoints()
466 void doClick(SkPoint points[4]) { in doClick()
480 void drag(SkPoint* point) { in drag()
481 SkPoint delta = fCurr - fPrev; in drag()
482 *point += SkPoint::Make(delta.x() / kViewScale, delta.y() / kViewScale); in drag()
490 SkPoint inCTM = SkPoint::Make((x - kViewOffset) / kViewScale, (y - kViewOffset) / kViewScale); in onFindClickHandler()