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

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

Issue 2756463003: Remove opaque alpha channel special case (Closed)
Patch Set: 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..34839af21ef314b233f9d76e8e17ac3bca279371 100644
--- a/third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp
@@ -79,7 +79,7 @@ void ImageFrame::clearPixelData() {
void ImageFrame::zeroFillPixelData() {
m_bitmap.eraseARGB(0, 0, 0, 0);
- m_hasAlpha = true;
+ setHasAlpha(true);
}
bool ImageFrame::copyBitmapData(const ImageFrame& other) {

Powered by Google App Engine
This is Rietveld 408576698