Index: samplecode/SampleSubpixelTranslate.cpp |
diff --git a/samplecode/SampleSubpixelTranslate.cpp b/samplecode/SampleSubpixelTranslate.cpp |
index 686a153df69e01cd4a33522f88af893e8519b4b5..afb31c162cb4bec26f80e42ffad5a1562b5e1e21 100644 |
--- a/samplecode/SampleSubpixelTranslate.cpp |
+++ b/samplecode/SampleSubpixelTranslate.cpp |
@@ -37,8 +37,7 @@ public: |
} |
if (codec) { |
stream.rewind(); |
- codec->decode(&stream, &fBM, SkBitmap::kARGB_8888_Config, |
- SkImageDecoder::kDecodePixels_Mode); |
+ codec->decode(&stream, &fBM, kN32_SkColorType, SkImageDecoder::kDecodePixels_Mode); |
SkDELETE(codec); |
} else { |
fBM.allocN32Pixels(1, 1); |