diff options
author | mtklein <mtklein@chromium.org> | 2016-02-07 12:23:10 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-07 12:23:10 -0800 |
commit | 2afbe23753bf97402a47408c83107042eea3c476 (patch) | |
tree | 2abae0e01e142a23697fd27817c654dc02e0a0aa /tests/ImageFilterTest.cpp | |
parent | 1334b41f0f1cce30b86fe95a13d9c84aa3eb0914 (diff) |
msan: initialize buffer BlurLargeImage blurs
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN-Trybot
BUG=skia:
Review URL: https://codereview.chromium.org/1676103002
Diffstat (limited to 'tests/ImageFilterTest.cpp')
-rw-r--r-- | tests/ImageFilterTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp index 68a95fcb17..c4e431f4ed 100644 --- a/tests/ImageFilterTest.cpp +++ b/tests/ImageFilterTest.cpp @@ -185,7 +185,7 @@ DEF_TEST(ImageFilter, reporter) { SkAutoTUnref<SkImageFilter> gray(make_grayscale(nullptr, nullptr)); REPORTER_ASSERT(reporter, true == gray->asColorFilter(nullptr)); } - + { // Check that a colorfilterimage filter without a crop rect but with an input // that is another colorfilterimage can be expressed as a colorfilter (composed). @@ -887,7 +887,7 @@ DEF_TEST(ImageFilterCrossProcessPictureImageFilter, reporter) { pixel = *bitmap.getAddr32(0, 0); // If the security precautions are enabled, the result here should not be green, since the // filter draws nothing. - REPORTER_ASSERT(reporter, SkPicture::PictureIOSecurityPrecautionsEnabled() + REPORTER_ASSERT(reporter, SkPicture::PictureIOSecurityPrecautionsEnabled() ? pixel != SK_ColorGREEN : pixel == SK_ColorGREEN); } @@ -1274,6 +1274,7 @@ static void test_large_blur_input(skiatest::Reporter* reporter, SkCanvas* canvas #endif largeBmp.allocN32Pixels(largeW, largeH); + largeBmp.eraseColor(0); if (!largeBmp.getPixels()) { ERRORF(reporter, "Failed to allocate large bmp."); return; |