• Home
  • Raw
  • Download

Lines Matching refs:pts

50 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data,  in MakeLinear()
52 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
55 static sk_sp<SkShader> MakeRadial(const SkPoint pts[2], const GradData& data, in MakeRadial()
58 center.set(SkScalarAve(pts[0].fX, pts[1].fX), in MakeRadial()
59 SkScalarAve(pts[0].fY, pts[1].fY)); in MakeRadial()
65 static sk_sp<SkShader> MakeSweep(const SkPoint pts[2], const GradData& data, in MakeSweep()
68 center.set(SkScalarAve(pts[0].fX, pts[1].fX), in MakeSweep()
69 SkScalarAve(pts[0].fY, pts[1].fY)); in MakeSweep()
74 static sk_sp<SkShader> MakeConical(const SkPoint pts[2], const GradData& data, in MakeConical()
77 center0.set(SkScalarAve(pts[0].fX, pts[1].fX), in MakeConical()
78 SkScalarAve(pts[0].fY, pts[1].fY)); in MakeConical()
79 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in MakeConical()
80 SkScalarInterp(pts[0].fY, pts[1].fY, SkIntToScalar(1)/4)); in MakeConical()
81 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7, in MakeConical()
82 center0, (pts[1].fX - pts[0].fX) / 2, in MakeConical()
87 static sk_sp<SkShader> MakeConicalZeroRad(const SkPoint pts[2], const GradData& data, in MakeConicalZeroRad()
90 center0.set(SkScalarAve(pts[0].fX, pts[1].fX), in MakeConicalZeroRad()
91 SkScalarAve(pts[0].fY, pts[1].fY)); in MakeConicalZeroRad()
92 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in MakeConicalZeroRad()
93 SkScalarInterp(pts[0].fY, pts[1].fY, SkIntToScalar(1)/4)); in MakeConicalZeroRad()
95 center0, (pts[1].fX - pts[0].fX) / 2, in MakeConicalZeroRad()
100 static sk_sp<SkShader> MakeConicalOutside(const SkPoint pts[2], const GradData& data, in MakeConicalOutside()
103 SkScalar radius0 = (pts[1].fX - pts[0].fX) / 10; in MakeConicalOutside()
104 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in MakeConicalOutside()
105 center0.set(pts[0].fX + radius0, pts[0].fY + radius0); in MakeConicalOutside()
106 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in MakeConicalOutside()
114 static sk_sp<SkShader> MakeConicalOutsideZeroRad(const SkPoint pts[2], const GradData& data, in MakeConicalOutsideZeroRad()
117 SkScalar radius0 = (pts[1].fX - pts[0].fX) / 10; in MakeConicalOutsideZeroRad()
118 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3; in MakeConicalOutsideZeroRad()
119 center0.set(pts[0].fX + radius0, pts[0].fY + radius0); in MakeConicalOutsideZeroRad()
120 center1.set(pts[1].fX - radius1, pts[1].fY - radius1); in MakeConicalOutsideZeroRad()
127 typedef sk_sp<SkShader> (*GradMaker)(const SkPoint pts[2], const GradData& data,
256 const SkPoint pts[2] = { in MakeShader() local
261 return gGrads[gradType].fMaker(pts, data, tm, scale); in MakeShader()
343 const SkPoint pts[] = { in onDraw() local
355 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, in onDraw()