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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.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/jpeg/JPEGImageDecoder.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
index a0278445f7355aec98e2dd230d6c9837877a67a5..c9890b1dcb8f5a206994e84b76015189e4a867de 100644
--- a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
@@ -945,7 +945,6 @@ bool JPEGImageDecoder::outputScanlines() {
// The buffer is transparent outside the decoded area while the image is
// loading. The image will be marked fully opaque in complete().
buffer.setStatus(ImageFrame::FramePartial);
- buffer.setHasAlpha(true);
Peter Kasting 2017/03/22 23:37:47 I think this already got removed in another CL?
cblume 2017/05/08 10:28:02 I don't see it in any of my other CLs after a quic
// For JPEGs, the frame always fills the entire image.
buffer.setOriginalFrameRect(IntRect(IntPoint(), size()));

Powered by Google App Engine
This is Rietveld 408576698