Index: src/codec/SkCodec.cpp |
diff --git a/src/codec/SkCodec.cpp b/src/codec/SkCodec.cpp |
index 4aa422c184e5b2b5e9c322787e80bb410b2c152d..5604af8d3dce27067c0439c211872f66f6e2e832 100644 |
--- a/src/codec/SkCodec.cpp |
+++ b/src/codec/SkCodec.cpp |
@@ -88,10 +88,6 @@ SkCodec::RewindState SkCodec::rewindIfNeeded() { |
} |
SkScanlineDecoder* SkCodec::getScanlineDecoder(const SkImageInfo& dstInfo) { |
- fScanlineDecoder.reset(NULL); |
- if (!rewindIfNeeded()) { |
- return NULL; |
- } |
fScanlineDecoder.reset(this->onGetScanlineDecoder(dstInfo)); |
return fScanlineDecoder.get(); |
} |