Chromium Code Reviews| Index: src/codec/SkJpegCodec.cpp |
| diff --git a/src/codec/SkJpegCodec.cpp b/src/codec/SkJpegCodec.cpp |
| index 5acc0b396c54d34abb922f80687104b54f85990a..e5cc6e36b1a289cd1376a2c477c414edb9eebe95 100644 |
| --- a/src/codec/SkJpegCodec.cpp |
| +++ b/src/codec/SkJpegCodec.cpp |
| @@ -354,6 +354,9 @@ SkCodec::Result SkJpegCodec::onGetPixels(const SkImageInfo& dstInfo, |
| // the fill color for opaque images. If the destination is kGray, |
| // the low 8 bits of SK_ColorBLACK will be used. Conveniently, |
| // these are zeros, which is the representation for black in kGray. |
| + // If the destination is kRGB_565, the low 16 bits of SK_ColorBLACK |
| + // will be used. Conveniently, these are zeros, which is the |
|
scroggo
2015/07/29 17:15:14
nit: if kYes_ZeroInitialized, we could skip this.
msarett
2015/07/29 17:29:39
Done.
|
| + // representation for black in kRGB_565. |
| SkSwizzler::Fill(dstRow, dstInfo, dstRowBytes, dstHeight - y, SK_ColorBLACK, NULL); |
| // Prevent libjpeg from failing on incomplete decode |