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

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

Issue 23068027: Animated WebP: Optimize decoding in case of seeking (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@add_noblend_image
Patch Set: Created 7 years, 4 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/ImageFrame.cpp
diff --git a/Source/core/platform/image-decoders/ImageFrame.cpp b/Source/core/platform/image-decoders/ImageFrame.cpp
index db762c9e94bf179f735d8694177309e2a57debfd..80899896ab1d2b89b1960e9497c5550debe17e0e 100644
--- a/Source/core/platform/image-decoders/ImageFrame.cpp
+++ b/Source/core/platform/image-decoders/ImageFrame.cpp
@@ -39,6 +39,7 @@ ImageFrame::ImageFrame()
, m_status(FrameEmpty)
, m_duration(0)
, m_disposalMethod(DisposeNotSpecified)
+ , m_blendingMethod(BlendWithPrevious)
, m_premultiplyAlpha(true)
, m_requiredPreviousFrameIndex(notFound)
#if !ASSERT_DISABLED
@@ -61,6 +62,7 @@ ImageFrame& ImageFrame::operator=(const ImageFrame& other)
setStatus(other.status());
setDuration(other.duration());
setDisposalMethod(other.disposalMethod());
+ setBlendingMethod(other.blendingMethod());
setPremultiplyAlpha(other.premultiplyAlpha());
// 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.

Powered by Google App Engine
This is Rietveld 408576698