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

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

Issue 16260002: Reland "Decode GIF image frames on demand". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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
« no previous file with comments | « Source/core/platform/image-decoders/ico/ICOImageDecoder.cpp ('k') | Source/core/svg/graphics/SVGImage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f76345f48f8e2eff435fe6b874ba942fb0588ee9 100644
--- a/Source/core/platform/image-decoders/skia/ImageDecoderSkia.cpp
+++ b/Source/core/platform/image-decoders/skia/ImageDecoderSkia.cpp
@@ -40,6 +40,10 @@ ImageFrame::ImageFrame()
, m_duration(0)
, m_disposalMethod(DisposeNotSpecified)
, m_premultiplyAlpha(true)
+ , m_requiredPreviousFrameIndex(notFound)
+#if !ASSERT_DISABLED
+ , m_requiredPreviousFrameIndexValid(false)
+#endif
{
}
@@ -58,6 +62,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());
« no previous file with comments | « Source/core/platform/image-decoders/ico/ICOImageDecoder.cpp ('k') | Source/core/svg/graphics/SVGImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698