Lines Matching refs:SkShader
27 SkShader::kClamp_TileMode)); in test_big_grad()
49 SkShader::TileMode fTileMode;
51 void gradCheck(skiatest::Reporter* reporter, const sk_sp<SkShader>& shader, in gradCheck()
52 SkShader::GradientInfo* info, in gradCheck()
53 SkShader::GradientType gt) const { in gradCheck()
73 sk_sp<SkShader> s(SkShader::MakeEmptyShader()); in none_gradproc()
74 REPORTER_ASSERT(reporter, SkShader::kNone_GradientType == s->asAGradient(nullptr)); in none_gradproc()
78 sk_sp<SkShader> s(new SkColorShader(rec.fColors[0])); in color_gradproc()
79 REPORTER_ASSERT(reporter, SkShader::kColor_GradientType == s->asAGradient(nullptr)); in color_gradproc()
81 SkShader::GradientInfo info; in color_gradproc()
90 sk_sp<SkShader> s(SkGradientShader::MakeLinear(buildRec.fPoint, buildRec.fColors, buildRec.fPos, in linear_gradproc()
93 SkShader::GradientInfo info; in linear_gradproc()
94 checkRec.gradCheck(reporter, s, &info, SkShader::kLinear_GradientType); in linear_gradproc()
100 sk_sp<SkShader> s(SkGradientShader::MakeRadial(buildRec.fPoint[0], buildRec.fRadius[0], in radial_gradproc()
104 SkShader::GradientInfo info; in radial_gradproc()
105 checkRec.gradCheck(reporter, s, &info, SkShader::kRadial_GradientType); in radial_gradproc()
112 sk_sp<SkShader> s(SkGradientShader::MakeSweep(buildRec.fPoint[0].fX, buildRec.fPoint[0].fY, in sweep_gradproc()
116 SkShader::GradientInfo info; in sweep_gradproc()
117 checkRec.gradCheck(reporter, s, &info, SkShader::kSweep_GradientType); in sweep_gradproc()
123 sk_sp<SkShader> s(SkGradientShader::MakeTwoPointConical(buildRec.fPoint[0], in conical_gradproc()
132 SkShader::GradientInfo info; in conical_gradproc()
133 checkRec.gradCheck(reporter, s, &info, SkShader::kConical_GradientType); in conical_gradproc()
147 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkShader::kClamp_TileMode)); in TestConstantGradient()
178 rec.fTileMode = SkShader::kClamp_TileMode; in TestGradientShaders()
245 for (int mode = 0; mode < SkShader::kTileModeCount; ++mode) { in TestGradientOptimization()
246 if (gProcInfo[i].fIsClampRestricted && mode != SkShader::kClamp_TileMode) { in TestGradientOptimization()
255 rec.fTileMode = static_cast<SkShader::TileMode>(mode); in TestGradientOptimization()
260 if (!gTests[t].fRequiresNonClamp || mode != SkShader::kClamp_TileMode) { in TestGradientOptimization()
279 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkShader::kClamp_TileMode)); in test_nearly_vertical()
291 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkShader::kClamp_TileMode)); in test_vertical()
308 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 4, SkShader::kClamp_TileMode)); in test_linear_fuzz()
325 colors, nullptr, SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode)); in test_two_point_conical_zero_radius()
341 p.setShader(SkGradientShader::MakeLinear(pts1, colors, nullptr, 2, SkShader::kClamp_TileMode)); in test_clamping_overflow()
348 p.setShader(SkGradientShader::MakeLinear(pts2, colors, nullptr, 2, SkShader::kClamp_TileMode)); in test_clamping_overflow()
363 p.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode)); in test_degenerate_linear()
403 SkShader::TileMode fTileMode; in test_linear_fuzzer()
413 SkShader::kClamp_TileMode, in test_linear_fuzzer()
423 SkShader::kClamp_TileMode, in test_linear_fuzzer()
433 SkShader::kClamp_TileMode, in test_linear_fuzzer()
443 SkShader::kClamp_TileMode, in test_linear_fuzzer()