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

Unified Diff: bench/nanobench.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
« no previous file with comments | « no previous file | dm/DM.cpp » ('j') | include/core/SkEncodedFormat.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/nanobench.cpp
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index 920979cbf9e66c865f2aa21922344ebaccc4e262..fdce3513b8ed360fb59367513cc5c42e3af285e1 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -160,7 +160,7 @@ static bool write_canvas_png(SkCanvas* canvas, const SkString& filename) {
SkDebugf("Can't write %s.\n", filename.c_str());
return false;
}
- if (!SkImageEncoder::EncodeStream(&stream, bmp, SkImageEncoder::kPNG_Type, 100)) {
+ if (!SkImageEncoder::EncodeStream(&stream, bmp, kPNG_SkEncodedFormat, 100)) {
SkDebugf("Can't encode a PNG.\n");
return false;
}
« no previous file with comments | « no previous file | dm/DM.cpp » ('j') | include/core/SkEncodedFormat.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698