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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/gif/GIFImageReader.h

Issue 1812273003: Eliminate copies of encoded image data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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/image-decoders/gif/GIFImageReader.h
diff --git a/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageReader.h b/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageReader.h
index 617237748daf1301c826d29adf29d76c067e70cd..bfa98974ed8578b43821d4738abbdb4a9cf0657f 100644
--- a/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageReader.h
+++ b/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageReader.h
@@ -40,7 +40,6 @@
// Define ourselves as the clientPtr. Mozilla just hacked their C++ callback class into this old C decoder,
// so we will too.
-#include "platform/SharedBuffer.h"
#include "platform/image-decoders/FastSharedBufferReader.h"
#include "platform/image-decoders/gif/GIFImageDecoder.h"
#include "wtf/Allocator.h"
@@ -299,7 +298,7 @@ public:
{
}
- void setData(PassRefPtr<blink::SharedBuffer> data) { m_data = data; }
+ void setData(PassRefPtr<blink::SegmentReader> data) { m_data = data; }
bool parse(blink::GIFImageDecoder::GIFParseQuery);
bool decode(size_t frameIndex);
@@ -356,7 +355,7 @@ private:
Vector<OwnPtr<GIFFrameContext>> m_frames;
- RefPtr<blink::SharedBuffer> m_data;
+ RefPtr<blink::SegmentReader> m_data;
bool m_parseCompleted;
};

Powered by Google App Engine
This is Rietveld 408576698