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

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

Issue 2756463003: Remove opaque alpha channel special case (Closed)
Patch Set: Fixing first-pixel alpha case 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 74721a6be0281d876155a3ac1565b3fe87911995..9fde4bd8f3fdc0a717ecaff793dd0d5a466bb91f 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);
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