BUG=skia:6216
Change-Id: Ifb0a0a1e634bb291c586d2094401ec10349dcd0e
Reviewed-on: https://skia-review.googlesource.com/8817
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
static void init_bitmap(Fuzz* fuzz, SkBitmap* bmp) {
uint8_t colorType;
fuzz->nextRange(&colorType, 0, (int)kLastEnum_SkColorType);
+ // ColorType needs to match what the system configuration is.
+ if (colorType == kRGBA_8888_SkColorType || colorType == kBGRA_8888_SkColorType) {
+ colorType = kN32_SkColorType;
+ }
bool b;
fuzz->next(&b);
SkImageInfo info = SkImageInfo::Make(kBmpSize,