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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageSource.cpp

Issue 2054643003: Remove duplication of encoded image data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (rebase) Created 4 years, 5 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: 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..1f98fe0c758eff0810568866402fec5778431fe7 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageSource.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageSource.cpp
@@ -46,6 +46,11 @@ size_t ImageSource::clearCacheExceptFrame(size_t clearExceptFrame)
return m_decoder ? m_decoder->clearCacheExceptFrame(clearExceptFrame) : 0;
}
+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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/ImageSource.h ('k') | third_party/WebKit/Source/platform/mhtml/MHTMLArchive.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698