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 bb459577276bb6208c8336f7f0aa9b1e413c40ac..88c79bbf9427c91300bc9654ad178bbc75611e2f 100644 |
--- a/third_party/WebKit/Source/platform/graphics/ImageSource.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/ImageSource.cpp |
@@ -46,6 +46,13 @@ size_t ImageSource::clearCacheExceptFrame(size_t clearExceptFrame) |
return m_decoder ? m_decoder->clearCacheExceptFrame(clearExceptFrame) : 0; |
} |
+bool ImageSource::clear() |
+{ |
+ if (!m_decoder) |
+ return false; |
+ return m_decoder->clear(); |
+} |
+ |
PassRefPtr<SharedBuffer> ImageSource::data() |
{ |
return m_decoder ? m_decoder->data() : nullptr; |