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).
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);
}
#endif
largeBmp.allocN32Pixels(largeW, largeH);
+ largeBmp.eraseColor(0);
if (!largeBmp.getPixels()) {
ERRORF(reporter, "Failed to allocate large bmp.");
return;
blacklist.extend(('_ image _ .png').split(' ')) # I8 .png color tables
blacklist.extend(('_ image _ .bmp').split(' ')) # I8 .bmp color tables
- match.append('~BlurLargeImage') # Bug in the GM?
match.append('~FontMgrAndroidParser') # expat currently uninstrumented.
if blacklist: