Index: src/images/SkImageDecoder.cpp |
diff --git a/src/images/SkImageDecoder.cpp b/src/images/SkImageDecoder.cpp |
index 1544edf366bca7939bebae7faa1faaef536dec06..15cd1a60c0dd6dc27bf517f0a85d9453e5301e70 100644 |
--- a/src/images/SkImageDecoder.cpp |
+++ b/src/images/SkImageDecoder.cpp |
@@ -40,6 +40,7 @@ SkImageDecoder::SkImageDecoder() |
, fDefaultPref(SkBitmap::kNo_Config) |
, fDitherImage(true) |
, fUsePrefTable(false) |
+ , fSkipWritingZeroes(false) |
, fPreferQualityOverSpeed(false) |
, fRequireUnpremultipliedColors(false) { |
} |
@@ -63,6 +64,8 @@ void SkImageDecoder::copyFieldsToOther(SkImageDecoder* other) { |
} else { |
other->fDefaultPref = fDefaultPref; |
} |
+ other->setDitherImage(fDitherImage); |
+ other->setSkipWritingZeroes(fSkipWritingZeroes); |
other->setPreferQualityOverSpeed(fPreferQualityOverSpeed); |
other->setRequireUnpremultipliedColors(fRequireUnpremultipliedColors); |
} |