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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp

Issue 1460523002: GIF decoding to Index8, unit tests and misusing unit test as benchmark (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup. tableChanged was wrong - do proper check. Created 5 years, 1 month 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/ImageDecoder.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
index d21f7e7cb3037ff10c86b7122f895a44f9418d90..fe95083eee14c51229c5fe0b79eefd595773c63d 100644
--- a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
@@ -129,7 +129,7 @@ size_t ImageDecoder::frameCount()
return newSize;
}
-ImageFrame* ImageDecoder::frameBufferAtIndex(size_t index)
+ImageFrame* ImageDecoder::frameBufferAtIndex(size_t index, ImageFrame::ColorType outputColor)
{
if (index >= frameCount())
return 0;
@@ -137,7 +137,7 @@ ImageFrame* ImageDecoder::frameBufferAtIndex(size_t index)
ImageFrame* frame = &m_frameBufferCache[index];
if (frame->status() != ImageFrame::FrameComplete) {
scroggo_chromium 2015/12/03 21:47:21 It appears that if the frame was complete, it look
aleksandar.stojiljkovic 2015/12/04 00:07:34 Yes, RELEASE_ASSERT there needed.
PlatformInstrumentation::willDecodeImage(filenameExtension());
- decode(index);
+ decodeTo(index, outputColor);
PlatformInstrumentation::didDecodeImage();
}

Powered by Google App Engine
This is Rietveld 408576698