Chromium Code Reviews| 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); |
|
Peter Kasting
2016/01/14 00:17:29
Why is this additional check needed? If all frame
aleksandar.stojiljkovic
2016/01/14 11:32:53
This is about different issue (unrelated to Dispos
Peter Kasting
2016/01/14 22:58:39
I didn't write any of this code, so I'm having a h
|
| } else { |
| removeDecoder = complete; |
| } |