Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
More cleanup in GIFImageReader
https://bugs.webkit.org/show_bug.cgi?id=111137 Reviewed by Stephen White. Refactor GIFImageReaderReader with the following changes: + Separate GIFLZWContext for decoding states. + Replace unsigned char* with Vector<unsigned char> There is no change in code behavior and just refactoring. No new tests. This is covered by existing GIFImageReaderTest. I also did a local testing on a 50k image corpus and showed no regression. * platform/image-decoders/gif/GIFImageDecoder.cpp: (WebCore::GIFImageDecoder::haveDecodedRow): * platform/image-decoders/gif/GIFImageDecoder.h: (GIFImageDecoder): * platform/image-decoders/gif/GIFImageReader.cpp: (GIFImageReader::outputRow): (GIFImageReader::doLZW): (GIFImageReader::decodeInternal): (GIFImageReader::prepareLZWContext): * platform/image-decoders/gif/GIFImageReader.h: (GIFFrameContext): (GIFFrameContext::GIFFrameContext): (GIFFrameContext::~GIFFrameContext): (GIFLZWContext): (GIFLZWContext::GIFLZWContext): (GIFImageReader): Canonical link: https://commits.webkit.org/129975@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@144961 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Hin-Chung Lam
committed
Mar 6, 2013
1 parent
1ad6b4b
commit fae1c906ab6efdfce2b0f0bd7641b817e793360d
Showing
5 changed files
with
167 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.