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

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

Issue 2756463003: Remove opaque alpha channel special case (Closed)
Patch Set: Code review comments Created 3 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: 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 12e0b2fb8364ec0dc2fda772ca5eee3b80fb3bac..3547c833077483c6192211a76531843be1b2273f 100644
--- a/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp
@@ -464,11 +464,10 @@ bool WEBPImageDecoder::DecodeSingleFrame(const uint8_t* data_bytes,
ColorSpaceForSkImages()))
return SetFailed();
buffer.ZeroFillPixelData();
- buffer.SetStatus(ImageFrame::kFramePartial);
// 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::kFramePartial);
buffer.SetOriginalFrameRect(IntRect(IntPoint(), Size()));
}

Powered by Google App Engine
This is Rietveld 408576698