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

Unified Diff: Source/core/platform/image-decoders/skia/ImageDecoderSkia.cpp

Issue 15350006: Decode GIF image frames on demand. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 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: Source/core/platform/image-decoders/skia/ImageDecoderSkia.cpp
diff --git a/Source/core/platform/image-decoders/skia/ImageDecoderSkia.cpp b/Source/core/platform/image-decoders/skia/ImageDecoderSkia.cpp
index f93bf34faa0085f9ecab4b7f50c87d053afadf64..c0960f9a38505731f46b0592815433575da516b6 100644
--- a/Source/core/platform/image-decoders/skia/ImageDecoderSkia.cpp
+++ b/Source/core/platform/image-decoders/skia/ImageDecoderSkia.cpp
@@ -40,6 +40,7 @@ ImageFrame::ImageFrame()
, m_duration(0)
, m_disposalMethod(DisposeNotSpecified)
, m_premultiplyAlpha(true)
+ , m_requiredPreviousFrameIndex(notFound)
{
}
@@ -58,6 +59,7 @@ ImageFrame& ImageFrame::operator=(const ImageFrame& other)
setDuration(other.duration());
setDisposalMethod(other.disposalMethod());
setPremultiplyAlpha(other.premultiplyAlpha());
+ setRequiredPreviousFrameIndex(other.requiredPreviousFrameIndex());
// Be sure that this is called after we've called setStatus(), since we
// look at our status to know what to do with the alpha value.
setHasAlpha(other.hasAlpha());

Powered by Google App Engine
This is Rietveld 408576698