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

Unified Diff: dm/DM.cpp

Issue 1018953003: Add SkEncodedFormat, used by SkCodec. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Use a common enum for SkImageEncoder and SkImageDecoder and SkCodec Created 5 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: dm/DM.cpp
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 109a00de442e9f277fcd0d8276ed2e8ee659ac62..3d5fa80e1d7d552e1bdde5869bbf541ae22e19f5 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -471,7 +471,7 @@ struct Task {
}
bitmap = &converted;
}
- if (!SkImageEncoder::EncodeStream(&file, *bitmap, SkImageEncoder::kPNG_Type, 100)) {
+ if (!SkImageEncoder::EncodeStream(&file, *bitmap, kPNG_SkEncodedFormat, 100)) {
fail(SkStringPrintf("Can't encode PNG to %s.\n", path.c_str()));
return;
}

Powered by Google App Engine
This is Rietveld 408576698