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

Unified Diff: Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp

Issue 6526023: Merge 78548 - 2011-02-15 Gavin Peters <gavinp@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 10 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: Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
===================================================================
--- Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp (revision 78612)
+++ Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp (working copy)
@@ -179,7 +179,7 @@
m_bytesToSkip = std::max(numBytes - bytesToSkip, static_cast<long>(0));
}
- bool decode(const Vector<char>& data, bool onlySize)
+ bool decode(const SharedBuffer& data, bool onlySize)
{
m_decodingSizeOnly = onlySize;
@@ -526,7 +526,7 @@
// If we couldn't decode the image but we've received all the data, decoding
// has failed.
- if (!m_reader->decode(m_data->buffer(), onlySize) && isAllDataReceived())
+ if (!m_reader->decode(*m_data, onlySize) && isAllDataReceived())
setFailed();
// If we're done decoding the image, we don't need the JPEGImageReader
// anymore. (If we failed, |m_reader| has already been cleared.)

Powered by Google App Engine
This is Rietveld 408576698