diff options
author | Mike Reed <reed@google.com> | 2018-03-14 13:01:17 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-14 17:27:36 +0000 |
commit | 1be1f8d097da4d4c07b4a1fa16013b0d440e4308 (patch) | |
tree | 0d0d96a7ad0dcf35cc40838c5f0041e43929b384 /tests/BlurTest.cpp | |
parent | c29c76aae518a9c368248063e84a96ffe8c75b90 (diff) |
hide SkBlurMaskFilter and SkBlurQuality
SK_SUPPORT_LEGACY_BLURMASKFILTER
Bug: skia:
Change-Id: Ic3e27e08e6e3cd2ffc1cd13b044e197bebc96236
Reviewed-on: https://skia-review.googlesource.com/113940
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'tests/BlurTest.cpp')
-rw-r--r-- | tests/BlurTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/BlurTest.cpp b/tests/BlurTest.cpp index 75c6d819cf..50bc4d799e 100644 --- a/tests/BlurTest.cpp +++ b/tests/BlurTest.cpp @@ -383,7 +383,9 @@ static void test_blurDrawLooper(skiatest::Reporter* reporter, SkScalar sigma, Sk REPORTER_ASSERT(reporter, rec.fOffset.y() == dy); REPORTER_ASSERT(reporter, rec.fColor == color); REPORTER_ASSERT(reporter, rec.fStyle == style); +#ifdef SK_SUPPORT_LEGACY_BLURMASKFILTER REPORTER_ASSERT(reporter, rec.fQuality == kHigh_SkBlurQuality); +#endif } } } @@ -399,7 +401,9 @@ static void test_looper(skiatest::Reporter* reporter, sk_sp<SkDrawLooper> lp, Sk if (success) { REPORTER_ASSERT(reporter, rec.fSigma == sigma); REPORTER_ASSERT(reporter, rec.fStyle == style); +#ifdef SK_SUPPORT_LEGACY_BLURMASKFILTER REPORTER_ASSERT(reporter, rec.fQuality == kHigh_SkBlurQuality); +#endif } } @@ -474,7 +478,9 @@ DEF_TEST(BlurAsABlur, reporter) { REPORTER_ASSERT(reporter, success); REPORTER_ASSERT(reporter, rec.fSigma == sigma); REPORTER_ASSERT(reporter, rec.fStyle == style); +#ifdef SK_SUPPORT_LEGACY_BLURMASKFILTER REPORTER_ASSERT(reporter, rec.fQuality == kHigh_SkBlurQuality); +#endif } else { REPORTER_ASSERT(reporter, !success); } |