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

Unified Diff: experimental/tools/gmtoskp.cpp

Issue 769423002: work in progress (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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 | « experimental/tools/PageCachingDocument.cpp ('k') | experimental/tools/multipage_pdf_profiler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/tools/gmtoskp.cpp
diff --git a/experimental/tools/gmtoskp.cpp b/experimental/tools/gmtoskp.cpp
index bafd3d3679d1495fb80ee38ae0bece50a1d9c701..124c7f67600e32e827f8c0e37c693496664614e7 100644
--- a/experimental/tools/gmtoskp.cpp
+++ b/experimental/tools/gmtoskp.cpp
@@ -28,7 +28,7 @@ DEFINE_string2(match,
"If a GM does not match any list entry,\n"
"it is skipped unless some list entry starts with ~");
-DEFINE_string2(writePath, w, "", "Write output here as .skps.");
+DEFINE_string2(writePath, w, "", "Write output in this directory as .skps.");
__SK_FORCE_IMAGE_DECODER_LINKING;
@@ -49,11 +49,13 @@ int main(int argc, char** argv) {
SkCommandLineFlags::SetUsage("");
SkCommandLineFlags::Parse(argc, argv);
if (FLAGS_writePath.isEmpty()) {
+ SkDebugf("You need to specify a --writePath option");
return 1;
}
const char* writePath = FLAGS_writePath[0];
if (!sk_mkdir(writePath)) {
- return 1;
+
+ return 2;
}
for (const skiagm::GMRegistry* reg = skiagm::GMRegistry::Head();
reg != NULL;
@@ -69,7 +71,7 @@ int main(int argc, char** argv) {
SkFILEWStream outputStream(path.c_str());
if (!outputStream.isValid()) {
SkDebugf("Could not open file %s\n", path.c_str());
- return 1;
+ return 3;
}
gmtoskp(gm, &outputStream);
}
« no previous file with comments | « experimental/tools/PageCachingDocument.cpp ('k') | experimental/tools/multipage_pdf_profiler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698