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

Unified Diff: tools/imgconv.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: tools/imgconv.cpp
diff --git a/tools/imgconv.cpp b/tools/imgconv.cpp
index 4c9fb600bb8eccaa1b2628faca2166e25713a6e0..283b2ea53d15c43ec7f9ea8ca9d5368be64682ac 100644
--- a/tools/imgconv.cpp
+++ b/tools/imgconv.cpp
@@ -23,7 +23,7 @@ int tool_main(int argc, char** argv) {
SkBitmap bm;
if (SkImageDecoder::DecodeFile(src.c_str(), &bm)) {
- if (SkImageEncoder::EncodeFile(dst.c_str(), bm, SkImageEncoder::kJPEG_Type, 100)) {
+ if (SkImageEncoder::EncodeFile(dst.c_str(), bm, kJPEG_SkEncodedFormat, 100)) {
SkDebugf("converted %s to %s\n", src.c_str(), dst.c_str());
} else {
SkDebugf("failed to encode %s\n", src.c_str());

Powered by Google App Engine
This is Rietveld 408576698