Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(106)

Unified Diff: tools/bench_pictures_main.cpp

Issue 6551071: Allow PNG encoding/decoding during SkPicture serialization. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Rebase; fix comment Created 13 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ports/SkImageDecoder_empty.cpp ('k') | tools/render_pictures_main.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bench_pictures_main.cpp
diff --git a/tools/bench_pictures_main.cpp b/tools/bench_pictures_main.cpp
index 7c313cf41d805e4cc29eb31f2ddebc47bc1928b5..8ebac8a4b0d3a5ccd46545751187ab4b0a7e65d7 100644
--- a/tools/bench_pictures_main.cpp
+++ b/tools/bench_pictures_main.cpp
@@ -10,6 +10,7 @@
#include "SkBenchLogger.h"
#include "SkCanvas.h"
#include "SkGraphics.h"
+#include "SkImageDecoder.h"
#include "SkMath.h"
#include "SkOSFile.h"
#include "SkPicture.h"
@@ -109,7 +110,7 @@ static bool run_single_benchmark(const SkString& inputPath,
}
bool success = false;
- SkPicture picture(&inputStream, &success);
+ SkPicture picture(&inputStream, &success, &SkImageDecoder::DecodeStream);
if (!success) {
SkString err;
err.printf("Could not read an SkPicture from %s\n", inputPath.c_str());
« no previous file with comments | « src/ports/SkImageDecoder_empty.cpp ('k') | tools/render_pictures_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b