Index: src/codec/SkWbmpCodec.cpp |
diff --git a/src/codec/SkWbmpCodec.cpp b/src/codec/SkWbmpCodec.cpp |
index 4dd0f2544d181f848dde3b0cf015967e69f12518..af1ab46f730c9375cf111b2914081ddcf88d6bfe 100644 |
--- a/src/codec/SkWbmpCodec.cpp |
+++ b/src/codec/SkWbmpCodec.cpp |
@@ -181,6 +181,11 @@ int SkWbmpCodec::onGetScanlines(void* dst, int count, size_t dstRowBytes) { |
return count; |
} |
+bool SkWbmpCodec::onSkipScanlines(int count) { |
+ const size_t bytesToSkip = count * fSrcRowBytes; |
+ return this->stream()->skip(bytesToSkip) == bytesToSkip; |
+} |
+ |
SkCodec::Result SkWbmpCodec::onStartScanlineDecode(const SkImageInfo& dstInfo, |
const Options& options, SkPMColor inputColorTable[], int* inputColorCount) { |
if (options.fSubset) { |