diff options
author | reed <reed@google.com> | 2015-05-04 08:32:51 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-04 08:32:51 -0700 |
commit | 71a6cbfc585959738dc0b375603696ca7f60605f (patch) | |
tree | 308b974c044f356dbc0e0b6599e0be275f5b4f94 /tests/GradientTest.cpp | |
parent | f603fb3d0e5fa57c3f228d66945bef198b001135 (diff) |
remove redundant/deprecated TwoPointRadial gradiet -- use TwoPointConical
This CL derived from https://codereview.chromium.org/1114243005/
BUG=skia:
Review URL: https://codereview.chromium.org/1117423003
Diffstat (limited to 'tests/GradientTest.cpp')
-rw-r--r-- | tests/GradientTest.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/GradientTest.cpp b/tests/GradientTest.cpp index f530b3e263..a2814a3961 100644 --- a/tests/GradientTest.cpp +++ b/tests/GradientTest.cpp @@ -107,22 +107,6 @@ static void radial_gradproc(skiatest::Reporter* reporter, const GradRec& rec) { REPORTER_ASSERT(reporter, info.fRadius[0] == rec.fRadius[0]); } -static void radial2_gradproc(skiatest::Reporter* reporter, const GradRec& rec) { - SkAutoTUnref<SkShader> s(SkGradientShader::CreateTwoPointRadial(rec.fPoint[0], - rec.fRadius[0], - rec.fPoint[1], - rec.fRadius[1], - rec.fColors, - rec.fPos, - rec.fColorCount, - rec.fTileMode)); - - SkShader::GradientInfo info; - rec.gradCheck(reporter, s, &info, SkShader::kRadial2_GradientType); - REPORTER_ASSERT(reporter, !memcmp(info.fPoint, rec.fPoint, 2 * sizeof(SkPoint))); - REPORTER_ASSERT(reporter, !memcmp(info.fRadius, rec.fRadius, 2 * sizeof(SkScalar))); -} - static void sweep_gradproc(skiatest::Reporter* reporter, const GradRec& rec) { SkAutoTUnref<SkShader> s(SkGradientShader::CreateSweep(rec.fPoint[0].fX, rec.fPoint[0].fY, @@ -203,7 +187,6 @@ static void TestGradientShaders(skiatest::Reporter* reporter) { color_gradproc, linear_gradproc, radial_gradproc, - radial2_gradproc, sweep_gradproc, conical_gradproc, }; |