| Index: third_party/WebKit/Source/platform/graphics/ImageSource.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/ImageSource.cpp b/third_party/WebKit/Source/platform/graphics/ImageSource.cpp
|
| index 8cd7c12e547787fce408157bb007957f9ffe9ded..b311d91c115b803144c5d2e8bb0942e933bd1d23 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/ImageSource.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/ImageSource.cpp
|
| @@ -46,6 +46,16 @@ size_t ImageSource::clearCacheExceptFrame(size_t clearExceptFrame)
|
| return m_decoder ? m_decoder->clearCacheExceptFrame(clearExceptFrame) : 0;
|
| }
|
|
|
| +bool ImageSource::hasData() const
|
| +{
|
| + return m_decoder ? m_decoder->hasData() : false;
|
| +}
|
| +
|
| +PassRefPtr<SharedBuffer> ImageSource::data()
|
| +{
|
| + return m_decoder ? m_decoder->data() : nullptr;
|
| +}
|
| +
|
| void ImageSource::setData(SharedBuffer& data, bool allDataReceived)
|
| {
|
| // Create a decoder by sniffing the encoded data. If insufficient data bytes are available to
|
|
|