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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/ImageFrame.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/ImageFrame.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp b/third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp
index af1e07f91fda56196443c9254fd4f3151c1ca6c9..b7948bc5e2d102d7f46caba084be9dfa725a6f31 100644
--- a/third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp
@@ -78,8 +78,8 @@ void ImageFrame::clearPixelData() {
}
void ImageFrame::zeroFillPixelData() {
+ setHasAlpha(true);
Peter Kasting 2017/03/22 23:37:46 Seems like this shouldn't be here given patches el
cblume 2017/05/08 10:28:02 Done.
m_bitmap.eraseARGB(0, 0, 0, 0);
- m_hasAlpha = true;
}
bool ImageFrame::copyBitmapData(const ImageFrame& other) {

Powered by Google App Engine
This is Rietveld 408576698