Index: Source/platform/graphics/ImageSource.cpp |
diff --git a/Source/platform/graphics/ImageSource.cpp b/Source/platform/graphics/ImageSource.cpp |
index 03ae1da016c7d082958c11d66d3d230bd2ea9b79..1bd77db23b12020dd65738c36ef82213911a2959 100644 |
--- a/Source/platform/graphics/ImageSource.cpp |
+++ b/Source/platform/graphics/ImageSource.cpp |
@@ -55,14 +55,14 @@ bool ImageSource::initialized() const |
return m_decoder; |
} |
-void ImageSource::setData(SharedBuffer* data, bool allDataReceived) |
+void ImageSource::setData(SharedBuffer& data, bool allDataReceived) |
{ |
// Make the decoder by sniffing the bytes. |
// This method will examine the data and instantiate an instance of the appropriate decoder plugin. |
// If insufficient bytes are available to determine the image type, no decoder plugin will be |
// made. |
if (!m_decoder) |
- m_decoder = DeferredImageDecoder::create(*data, m_alphaOption, m_gammaAndColorProfileOption); |
+ m_decoder = DeferredImageDecoder::create(data, m_alphaOption, m_gammaAndColorProfileOption); |
if (m_decoder) |
m_decoder->setData(data, allDataReceived); |