Lines Matching refs:SkShader

50 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data,  in MakeLinear()
51 SkShader::TileMode tm, float scale) { in MakeLinear()
55 static sk_sp<SkShader> MakeRadial(const SkPoint pts[2], const GradData& data, in MakeRadial()
56 SkShader::TileMode tm, float scale) { in MakeRadial()
65 static sk_sp<SkShader> MakeSweep(const SkPoint pts[2], const GradData& data, in MakeSweep()
66 SkShader::TileMode tm, float scale) { in MakeSweep()
74 static sk_sp<SkShader> MakeConical(const SkPoint pts[2], const GradData& data, in MakeConical()
75 SkShader::TileMode tm, float scale) { in MakeConical()
87 static sk_sp<SkShader> MakeConicalZeroRad(const SkPoint pts[2], const GradData& data, in MakeConicalZeroRad()
88 SkShader::TileMode tm, float scale) { in MakeConicalZeroRad()
100 static sk_sp<SkShader> MakeConicalOutside(const SkPoint pts[2], const GradData& data, in MakeConicalOutside()
101 SkShader::TileMode tm, float scale) { in MakeConicalOutside()
114 static sk_sp<SkShader> MakeConicalOutsideZeroRad(const SkPoint pts[2], const GradData& data, in MakeConicalOutsideZeroRad()
115 SkShader::TileMode tm, float scale) { in MakeConicalOutsideZeroRad()
127 typedef sk_sp<SkShader> (*GradMaker)(const SkPoint pts[2], const GradData& data,
128 SkShader::TileMode tm, float scale);
158 static const char* tilemodename(SkShader::TileMode tm) { in tilemodename()
160 case SkShader::kClamp_TileMode: in tilemodename()
162 case SkShader::kRepeat_TileMode: in tilemodename()
164 case SkShader::kMirror_TileMode: in tilemodename()
190 SkShader::TileMode tm = SkShader::kClamp_TileMode, in GradientBench()
214 const char *tmname = tilemodename(SkShader::kClamp_TileMode); in GradientBench()
223 fPaint.setShader(MakeShader(gradType, data, SkShader::kClamp_TileMode, 1.0f)); in GradientBench()
254 sk_sp<SkShader> MakeShader(GradType gradType, GradData data, in MakeShader()
255 SkShader::TileMode tm, float scale) { in MakeShader()
275 DEF_BENCH( return new GradientBench(kLinear_GradType, gGradData[0], SkShader::kRepeat_TileMode); )
276 DEF_BENCH( return new GradientBench(kLinear_GradType, gGradData[1], SkShader::kRepeat_TileMode); )
277 DEF_BENCH( return new GradientBench(kLinear_GradType, gGradData[2], SkShader::kRepeat_TileMode); )
278 DEF_BENCH( return new GradientBench(kLinear_GradType, gGradData[0], SkShader::kMirror_TileMode); )
279 DEF_BENCH( return new GradientBench(kLinear_GradType, gGradData[1], SkShader::kMirror_TileMode); )
280 DEF_BENCH( return new GradientBench(kLinear_GradType, gGradData[2], SkShader::kMirror_TileMode); )
287 DEF_BENCH( return new GradientBench(kRadial_GradType, gGradData[0], SkShader::kClamp_TileMode, kRec…
291 DEF_BENCH( return new GradientBench(kRadial_GradType, gGradData[0], SkShader::kClamp_TileMode, kOva…
293 DEF_BENCH( return new GradientBench(kRadial_GradType, gGradData[0], SkShader::kMirror_TileMode); )
294 DEF_BENCH( return new GradientBench(kRadial_GradType, gGradData[0], SkShader::kRepeat_TileMode); )
357 SkShader::kClamp_TileMode)); in onDraw()