Index: src/codec/SkGifCodec.cpp |
diff --git a/src/codec/SkGifCodec.cpp b/src/codec/SkGifCodec.cpp |
index 13223960c8d5b500321e1ecbd932195f17384a5c..277da03191ff4ec067840cbdde99af8a9b73fc25 100644 |
--- a/src/codec/SkGifCodec.cpp |
+++ b/src/codec/SkGifCodec.cpp |
@@ -139,6 +139,11 @@ std::vector<SkCodec::FrameInfo> SkGifCodec::onGetFrameInfo() { |
return result; |
} |
+int SkGifCodec::onGetRepetitionCount() { |
+ fReader->parse(SkGifImageReader::SkGIFLoopCountQuery); |
+ return fReader->loopCount(); |
+} |
+ |
void SkGifCodec::initializeColorTable(const SkImageInfo& dstInfo, size_t frameIndex) { |
fCurrColorTable = fReader->getColorTable(dstInfo.colorType(), frameIndex); |
fCurrColorTableIsReal = fCurrColorTable; |