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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp

Issue 1962563002: Fix ImageDecoder::frameIsCompleteAtIndex - fully received instead of decoded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: extending the scope with naming suggested by @scroggo Created 4 years, 7 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/image-decoders/gif/GIFImageDecoder.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp
index 824764c5534764548b2c1eaa4225592de2b26d5f..340e6cae4337514ee30345fa4d401e98cabc9a2a 100644
--- a/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp
@@ -83,7 +83,7 @@ int GIFImageDecoder::repetitionCount() const
return m_repetitionCount;
}
-bool GIFImageDecoder::frameIsCompleteAtIndex(size_t index) const
+bool GIFImageDecoder::frameIsFullyReceivedAtIndex(size_t index) const
{
return m_reader && (index < m_reader->imagesCount()) && m_reader->frameContext(index)->isComplete();
Peter Kasting 2016/05/10 00:00:13 Hmm. This will always return false if decoding fa
aleksandar.stojiljkovic 2016/05/10 21:59:31 What would be the usage of returning "frame is ful
Peter Kasting 2016/05/11 00:33:02 We know we're not going to do any further updating
aleksandar.stojiljkovic 2016/05/11 11:05:15 The usage of this is in [1] - GraphicsContext::com
scroggo_chromium 2016/05/11 15:17:34 But it also will be used in crrev.com/1925533003 t
Peter Kasting 2016/05/11 18:29:34 The only reason we ever use low-quality filtering
aleksandar.stojiljkovic 2016/05/16 13:09:49 Done. Clear now; failed() added to "fully received
}

Powered by Google App Engine
This is Rietveld 408576698