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

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

Issue 2756463003: Remove opaque alpha channel special case (Closed)
Patch Set: Fix gif detecting if a frame claims to have transparency Created 3 years, 9 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: third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp
index ca2cd692b0f94e0a8bf5520646f1c2c9d6c9ced7..f1bbef96ff542b5e4a04df08a2ca0809580a28a5 100644
--- a/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp
@@ -461,11 +461,10 @@ bool WEBPImageDecoder::decodeSingleFrame(const uint8_t* dataBytes,
colorSpaceForSkImages()))
return setFailed();
buffer.zeroFillPixelData();
- buffer.setStatus(ImageFrame::FramePartial);
Peter Kasting 2017/03/22 23:37:47 Again, I think this got removed in another CL
cblume 2017/05/08 10:28:02 I did a quick look around my CLs but didn't see it
// The buffer is transparent outside the decoded area while the image is
// loading. The correct alpha value for the frame will be set when it is
// fully decoded.
- buffer.setHasAlpha(true);
+ buffer.setStatus(ImageFrame::FramePartial);
buffer.setOriginalFrameRect(IntRect(IntPoint(), size()));
}

Powered by Google App Engine
This is Rietveld 408576698