| Index: third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp b/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp
|
| index 09f931bb74b691ffd32a4543fee80a1a121818ab..a9a80e0ea157812d385cf219aaf35d7b8caa53dd 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp
|
| @@ -294,7 +294,7 @@ SkBitmap ImageFrameGenerator::tryToResumeDecode(size_t index, const SkISize& sca
|
| if (*it)
|
| decodedFrameCount++;
|
| }
|
| - removeDecoder = m_frameCount && (decodedFrameCount == m_frameCount);
|
| + removeDecoder = m_frameCount && (decodedFrameCount == m_frameCount) && (index == m_frameCount - 1);
|
| } else {
|
| removeDecoder = complete;
|
| }
|
|
|