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