Lines Matching refs:SkShader
55 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data, in MakeLinear()
56 SkShader::TileMode tm, const SkMatrix& localMatrix) { in MakeLinear()
61 static sk_sp<SkShader> MakeLinear4f(const SkPoint pts[2], const GradData& data, in MakeLinear4f()
62 SkShader::TileMode tm, const SkMatrix& localMatrix) { in MakeLinear4f()
68 static sk_sp<SkShader> MakeRadial(const SkPoint pts[2], const GradData& data, in MakeRadial()
69 SkShader::TileMode tm, const SkMatrix& localMatrix) { in MakeRadial()
77 static sk_sp<SkShader> MakeRadial4f(const SkPoint pts[2], const GradData& data, in MakeRadial4f()
78 SkShader::TileMode tm, const SkMatrix& localMatrix) { in MakeRadial4f()
87 static sk_sp<SkShader> MakeSweep(const SkPoint pts[2], const GradData& data, in MakeSweep()
88 SkShader::TileMode, const SkMatrix& localMatrix) { in MakeSweep()
96 static sk_sp<SkShader> MakeSweep4f(const SkPoint pts[2], const GradData& data, in MakeSweep4f()
97 SkShader::TileMode, const SkMatrix& localMatrix) { in MakeSweep4f()
106 static sk_sp<SkShader> Make2Radial(const SkPoint pts[2], const GradData& data, in Make2Radial()
107 SkShader::TileMode tm, const SkMatrix& localMatrix) { in Make2Radial()
119 static sk_sp<SkShader> Make2Radial4f(const SkPoint pts[2], const GradData& data, in Make2Radial4f()
120 SkShader::TileMode tm, const SkMatrix& localMatrix) { in Make2Radial4f()
133 static sk_sp<SkShader> Make2Conical(const SkPoint pts[2], const GradData& data, in Make2Conical()
134 SkShader::TileMode tm, const SkMatrix& localMatrix) { in Make2Conical()
145 static sk_sp<SkShader> Make2Conical4f(const SkPoint pts[2], const GradData& data, in Make2Conical4f()
146 SkShader::TileMode tm, const SkMatrix& localMatrix) { in Make2Conical4f()
158 typedef sk_sp<SkShader> (*GradMaker)(const SkPoint pts[2], const GradData& data,
159 SkShader::TileMode tm, const SkMatrix& localMatrix);
189 SkShader::TileMode tm = SkShader::kClamp_TileMode; in onDraw()
245 SkShader::TileMode tm = SkShader::kClamp_TileMode; in onDraw()
303 SkShader::TileMode tm = SkShader::kClamp_TileMode; in onDraw()
410 SkShader::kClamp_TileMode)); in onDraw()
454 SkShader::kClamp_TileMode));
490 SkShader::kClamp_TileMode)); in onDraw()
532 SkShader::kClamp_TileMode)); in onDraw()
584 SkShader::kClamp_TileMode, in onDraw()
588 SkShader::kClamp_TileMode, in onDraw()
629 SkShader::kClamp_TileMode); in onOnceBeforeDraw()
640 sk_sp<SkShader> fShader;
666 SK_ARRAY_COUNT(gColors), SkShader::kClamp_TileMode); in onOnceBeforeDraw()
678 sk_sp<SkShader> fShader;
714 SK_ARRAY_COUNT(gColors), SkShader::kClamp_TileMode); in onOnceBeforeDraw()
730 sk_sp<SkShader> fShader[100];
783 kStopCount, SkShader::kClamp_TileMode, in onDraw()
811 static sk_sp<SkShader> make_linear(const GradRun& run, SkShader::TileMode mode) { in make_linear()
816 static sk_sp<SkShader> make_radial(const GradRun& run, SkShader::TileMode mode) { in make_radial()
822 static sk_sp<SkShader> make_conical(const GradRun& run, SkShader::TileMode mode) { in make_conical()
829 static sk_sp<SkShader> make_sweep(const GradRun& run, SkShader::TileMode) { in make_sweep()
869 sk_sp<SkShader> (*factories[])(const GradRun&, SkShader::TileMode) {
876 const SkShader::TileMode mode = SkShader::kClamp_TileMode;
908 pts, colors, nullptr, SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode)); in draw_many_stops()
920 sk_sp<SkShader> (*shaderFunc)()) { in draw_circle_shader()
934 draw_circle_shader(canvas, 150, 150, 100, []() -> sk_sp<SkShader> { in __anon98014c940202()
954 SkShader::kClamp_TileMode, 0, nullptr)); in __anon98014c940202()
959 SkShader::kClamp_TileMode, 0, nullptr)); in __anon98014c940202()
964 return SkShader::MakePictureShader(recorder.finishRecordingAsPicture(), in __anon98014c940202()
965 SkShader::kRepeat_TileMode, in __anon98014c940202()
966 SkShader::kRepeat_TileMode, &m, nullptr); in __anon98014c940202()
969 draw_circle_shader(canvas, 400, 150, 100, []() -> sk_sp<SkShader> { in __anon98014c940302()
985 return SkShader::MakePictureShader(recorder.finishRecordingAsPicture(), in __anon98014c940302()
986 SkShader::kRepeat_TileMode, in __anon98014c940302()
987 SkShader::kRepeat_TileMode, nullptr, nullptr); in __anon98014c940302()
990 draw_circle_shader(canvas, 650, 150, 100, []() -> sk_sp<SkShader> { in __anon98014c940402()
1000 sk_sp<SkShader> sweep1 = SkGradientShader::MakeSweep(center.x(), center.y(), colors, pos, in __anon98014c940402()
1004 sk_sp<SkShader> sweep2 = SkGradientShader::MakeSweep(center.x(), center.y(), colors, pos, in __anon98014c940402()
1007 sk_sp<SkShader> sweep(SkShader::MakeComposeShader(sweep1, sweep2, SkBlendMode::kExclusion)); in __anon98014c940402()
1014 return SkShader::MakeComposeShader(sweep, in __anon98014c940402()
1018 SkShader::kClamp_TileMode), in __anon98014c940402()
1029 static constexpr SkShader::TileMode modes[] = { SkShader::kClamp_TileMode,
1030 SkShader::kRepeat_TileMode,
1031 SkShader::kMirror_TileMode };
1086 static const SkShader::TileMode modes[] = {
1087 SkShader::kClamp_TileMode,
1088 SkShader::kRepeat_TileMode,
1089 SkShader::kMirror_TileMode,