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; |