Index: src/codec/SkCodec_libpng.cpp |
diff --git a/src/codec/SkCodec_libpng.cpp b/src/codec/SkCodec_libpng.cpp |
index 57653e74df30b44f379a755a2640f2030b3162a1..e113a0e1b6f1f6c93045ad361811918967c2540e 100644 |
--- a/src/codec/SkCodec_libpng.cpp |
+++ b/src/codec/SkCodec_libpng.cpp |
@@ -368,10 +368,10 @@ SkCodec::Result SkPngCodec::onGetPixels(const SkImageInfo& requestedInfo, void* |
if (!this->rewindIfNeeded()) { |
return kCouldNotRewind; |
} |
- if (requestedInfo.dimensions() != this->getOriginalInfo().dimensions()) { |
+ if (requestedInfo.dimensions() != this->getInfo().dimensions()) { |
return kInvalidScale; |
} |
- if (!conversion_possible(requestedInfo, this->getOriginalInfo())) { |
+ if (!conversion_possible(requestedInfo, this->getInfo())) { |
return kInvalidConversion; |
} |
@@ -424,7 +424,7 @@ SkCodec::Result SkPngCodec::onGetPixels(const SkImageInfo& requestedInfo, void* |
// told png to upscale. |
SkASSERT(PNG_COLOR_TYPE_GRAY == pngColorType); |
sc = SkSwizzler::kGray; |
- } else if (this->getOriginalInfo().alphaType() == kOpaque_SkAlphaType) { |
+ } else if (this->getInfo().alphaType() == kOpaque_SkAlphaType) { |
sc = SkSwizzler::kRGBX; |
} else { |
sc = SkSwizzler::kRGBA; |