Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1620)

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp

Issue 1574283002: GIF Animations "clear from cache related glitch" fix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: @pkasting, great that you figured out this - yes, DisposeOverwritePrevious fixes this. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698