diff options
author | 2015-09-30 09:15:14 -0700 | |
---|---|---|
committer | 2015-09-30 09:15:14 -0700 | |
commit | 3a7701c0101386ba05acdde6f911be0c2696f317 (patch) | |
tree | cf32920b67df2f2553cb22d1fe420c9bab45d4c5 /src/codec/SkBmpCodec.cpp | |
parent | 46c574725676b26ada63ac15e42cda309dcd5090 (diff) |
Call rewindIfNeeded in SkCodec
Rather than calling it in each subclass, call it once in the base
class. Call it first, since other steps may modify internal structures
which would be replaced by a call to onRewind.
BUG=skia:4284
Review URL: https://codereview.chromium.org/1381483002
Diffstat (limited to 'src/codec/SkBmpCodec.cpp')
-rw-r--r-- | src/codec/SkBmpCodec.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/codec/SkBmpCodec.cpp b/src/codec/SkBmpCodec.cpp index 4e801f0be1..4ae57c057a 100644 --- a/src/codec/SkBmpCodec.cpp +++ b/src/codec/SkBmpCodec.cpp @@ -576,9 +576,6 @@ uint32_t SkBmpCodec::computeNumColors(uint32_t numColors) { SkCodec::Result SkBmpCodec::onStartScanlineDecode(const SkImageInfo& dstInfo, const SkCodec::Options& options, SkPMColor inputColorPtr[], int* inputColorCount) { - if (!this->rewindIfNeeded()) { - return kCouldNotRewind; - } if (options.fSubset) { // Subsets are not supported. return kUnimplemented; |