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

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: Fix assert fail on debug 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..165d650916d09993cb8f07dff5a5068be1369964 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_alphaBlendSource(BlendAtopPreviousFrame)
, 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());
+ setAlphaBlendSource(other.alphaBlendSource());
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.
@@ -136,7 +138,7 @@ void ImageFrame::setHasAlpha(bool alpha)
m_bitmap->bitmap().setIsOpaque(isOpaque);
}
-void ImageFrame::setStatus(FrameStatus status)
+void ImageFrame::setStatus(Status status)
{
m_status = status;
if (m_status == FrameComplete) {
« no previous file with comments | « Source/core/platform/image-decoders/ImageDecoderTest.cpp ('k') | Source/core/platform/image-decoders/gif/GIFImageDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698