Lines Matching refs:SkShader
26 SkShader::kClamp_TileMode)); in test_big_grad()
48 SkShader::TileMode fTileMode;
50 void gradCheck(skiatest::Reporter* reporter, const sk_sp<SkShader>& shader, in gradCheck()
51 SkShader::GradientInfo* info, in gradCheck()
52 SkShader::GradientType gt) const { in gradCheck()
72 sk_sp<SkShader> s(SkShader::MakeEmptyShader()); in none_gradproc()
73 REPORTER_ASSERT(reporter, SkShader::kNone_GradientType == s->asAGradient(nullptr)); in none_gradproc()
77 sk_sp<SkShader> s(new SkColorShader(rec.fColors[0])); in color_gradproc()
78 REPORTER_ASSERT(reporter, SkShader::kColor_GradientType == s->asAGradient(nullptr)); in color_gradproc()
80 SkShader::GradientInfo info; in color_gradproc()
89 sk_sp<SkShader> s(SkGradientShader::MakeLinear(buildRec.fPoint, buildRec.fColors, buildRec.fPos, in linear_gradproc()
92 SkShader::GradientInfo info; in linear_gradproc()
93 checkRec.gradCheck(reporter, s, &info, SkShader::kLinear_GradientType); in linear_gradproc()
99 sk_sp<SkShader> s(SkGradientShader::MakeRadial(buildRec.fPoint[0], buildRec.fRadius[0], in radial_gradproc()
103 SkShader::GradientInfo info; in radial_gradproc()
104 checkRec.gradCheck(reporter, s, &info, SkShader::kRadial_GradientType); in radial_gradproc()
111 sk_sp<SkShader> s(SkGradientShader::MakeSweep(buildRec.fPoint[0].fX, buildRec.fPoint[0].fY, in sweep_gradproc()
115 SkShader::GradientInfo info; in sweep_gradproc()
116 checkRec.gradCheck(reporter, s, &info, SkShader::kSweep_GradientType); in sweep_gradproc()
122 sk_sp<SkShader> s(SkGradientShader::MakeTwoPointConical(buildRec.fPoint[0], in conical_gradproc()
131 SkShader::GradientInfo info; in conical_gradproc()
132 checkRec.gradCheck(reporter, s, &info, SkShader::kConical_GradientType); in conical_gradproc()
146 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkShader::kClamp_TileMode)); in TestConstantGradient()
176 rec.fTileMode = SkShader::kClamp_TileMode; in TestGradientShaders()
242 const SkShader::TileMode modes[] = { in TestGradientOptimization()
243 SkShader::kClamp_TileMode, SkShader::kRepeat_TileMode, SkShader::kMirror_TileMode, in TestGradientOptimization()
248 if (gProcInfo[i].fIsClampRestricted && mode != SkShader::kClamp_TileMode) { in TestGradientOptimization()
257 rec.fTileMode = static_cast<SkShader::TileMode>(mode); in TestGradientOptimization()
262 if (!gTests[t].fRequiresNonClamp || mode != SkShader::kClamp_TileMode) { in TestGradientOptimization()
281 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkShader::kClamp_TileMode)); in test_nearly_vertical()
293 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkShader::kClamp_TileMode)); in test_vertical()
310 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 4, SkShader::kClamp_TileMode)); in test_linear_fuzz()
327 colors, nullptr, SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode)); in test_two_point_conical_zero_radius()
343 p.setShader(SkGradientShader::MakeLinear(pts1, colors, nullptr, 2, SkShader::kClamp_TileMode)); in test_clamping_overflow()
350 p.setShader(SkGradientShader::MakeLinear(pts2, colors, nullptr, 2, SkShader::kClamp_TileMode)); in test_clamping_overflow()
365 p.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode)); in test_degenerate_linear()
405 SkShader::TileMode fTileMode; in test_linear_fuzzer()
415 SkShader::kClamp_TileMode, in test_linear_fuzzer()
425 SkShader::kClamp_TileMode, in test_linear_fuzzer()
435 SkShader::kClamp_TileMode, in test_linear_fuzzer()
445 SkShader::kClamp_TileMode, in test_linear_fuzzer()