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

Unified Diff: Source/WebCore/platform/image-decoders/webp/WEBPImageDecoder.cpp

Issue 8974025: Merge 102310 - WebPImageDecoder should not do a full image decode if progressive decoding is active (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/963/
Patch Set: Created 9 years 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
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/platform/image-decoders/webp/WEBPImageDecoder.cpp
===================================================================
--- Source/WebCore/platform/image-decoders/webp/WEBPImageDecoder.cpp (revision 103267)
+++ Source/WebCore/platform/image-decoders/webp/WEBPImageDecoder.cpp (working copy)
@@ -111,7 +111,7 @@
m_rgbOutput.resize(height * stride);
}
int newLastVisibleRow = 0; // Last completed row.
- if (allDataReceived) {
+ if (allDataReceived && !m_decoder) {
if (!WebPDecodeRGBInto(dataBytes, dataSize, m_rgbOutput.data(), m_rgbOutput.size(), stride))
return setFailed();
newLastVisibleRow = height;
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698