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

Unified Diff: src/images/SkPNGImageEncoder.cpp

Issue 2332743003: Disable png encodes from Alpha8, Float16 (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/images/SkPNGImageEncoder.cpp
diff --git a/src/images/SkPNGImageEncoder.cpp b/src/images/SkPNGImageEncoder.cpp
index 1c363edf04dad3443127a71c95838a0b245a412b..9b8808a2e0e765fbccfaabd40f1c3a9a12673718 100644
--- a/src/images/SkPNGImageEncoder.cpp
+++ b/src/images/SkPNGImageEncoder.cpp
@@ -195,10 +195,7 @@ bool SkPNGImageEncoder::onEncode(SkWStream* stream,
case kRGB_565_SkColorType:
break;
default:
- // TODO(scroggo): support Alpha_8 as Grayscale(black)+Alpha
- if (originalBitmap.copyTo(&copy, kN32_SkColorType)) {
- bitmap = ©
- }
+ return false;
}
SkColorType ct = bitmap->colorType();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698