Index: tests/ImageFilterTest.cpp |
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp |
index b67383682bf77b70ad7fb8598ae42dc3689a68e5..add9e23bba1c82865e8687a0346bea8218335863 100644 |
--- a/tests/ImageFilterTest.cpp |
+++ b/tests/ImageFilterTest.cpp |
@@ -802,8 +802,12 @@ DEF_TEST(ImageFilterCrossProcessPictureImageFilter, reporter) { |
canvas.clear(0x0); |
canvas.drawPicture(crossProcessPicture); |
pixel = *bitmap.getAddr32(0, 0); |
+#ifdef SK_DISALLOW_CROSSPROCESS_PICTUREIMAGEFILTERS |
// The result here should not be green, since the filter draws nothing. |
REPORTER_ASSERT(reporter, pixel != SK_ColorGREEN); |
+#else |
+ REPORTER_ASSERT(reporter, pixel == SK_ColorGREEN); |
+#endif |
} |
DEF_TEST(ImageFilterClippedPictureImageFilter, reporter) { |