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

Unified Diff: Source/core/platform/image-decoders/gif/GIFImageDecoder.h

Issue 26336003: Reland r158910 "Improve GIF decoding performance" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add dir to export data files Created 7 years, 2 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
« no previous file with comments | « no previous file | Source/core/platform/image-decoders/gif/GIFImageDecoder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/image-decoders/gif/GIFImageDecoder.h
diff --git a/Source/core/platform/image-decoders/gif/GIFImageDecoder.h b/Source/core/platform/image-decoders/gif/GIFImageDecoder.h
index 5c946a2187590ea2e6916ba30110f824ed9e759e..27733fa1bccdea13423aa752d293ff823b1dcf08 100644
--- a/Source/core/platform/image-decoders/gif/GIFImageDecoder.h
+++ b/Source/core/platform/image-decoders/gif/GIFImageDecoder.h
@@ -31,6 +31,8 @@
class GIFImageReader;
+typedef Vector<unsigned char> GIFRow;
+
namespace WebCore {
// This class decodes the GIF image format.
@@ -57,7 +59,7 @@ namespace WebCore {
virtual bool setFailed() OVERRIDE;
// Callbacks from the GIF reader.
- bool haveDecodedRow(size_t frameIndex, const Vector<unsigned char>& rowBuffer, size_t width, size_t rowNumber, unsigned repeatCount, bool writeTransparentPixels);
+ bool haveDecodedRow(size_t frameIndex, GIFRow::const_iterator rowBegin, size_t width, size_t rowNumber, unsigned repeatCount, bool writeTransparentPixels);
bool frameComplete(size_t frameIndex);
// For testing.
« no previous file with comments | « no previous file | Source/core/platform/image-decoders/gif/GIFImageDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698