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

Unified Diff: tools/skdiff_main.cpp

Issue 1865563002: Create output directory in skdiff (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skdiff_main.cpp
diff --git a/tools/skdiff_main.cpp b/tools/skdiff_main.cpp
index 8b56ea5f8ecc8e844ae5dfbf17a039db494b4055..bb611e96fc4baa3bcfe1173141427a2077f245c5 100644
--- a/tools/skdiff_main.cpp
+++ b/tools/skdiff_main.cpp
@@ -405,6 +405,10 @@ static void create_diff_images (DiffMetricProc dmp,
sizeof(SkString*), SkCastForQSort(compare_file_name_metrics));
}
+ if (!outputDir.isEmpty()) {
+ sk_mkdir(outputDir.c_str());
+ }
+
int i = 0;
int j = 0;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698