Index: dm/DMWriteTask.cpp |
diff --git a/dm/DMWriteTask.cpp b/dm/DMWriteTask.cpp |
index 13f25d0fc25d0f9358dc9a716cb3315ad12157a8..b90e44a2aa05c17a410a13be7dff30ccda1af798 100644 |
--- a/dm/DMWriteTask.cpp |
+++ b/dm/DMWriteTask.cpp |
@@ -2,7 +2,7 @@ |
#include "DMUtil.h" |
#include "SkColorPriv.h" |
-#include "SkCommandLineFlags.h" |
+#include "SkCommonFlags.h" |
#include "SkImageEncoder.h" |
#include "SkMallocPixelRef.h" |
#include "SkStream.h" |
@@ -129,6 +129,11 @@ bool save_data_to_file(const SkData* data, const char* path) { |
void WriteTask::draw() { |
SkString dir(FLAGS_writePath[0]); |
+#if SK_BUILD_FOR_IOS |
+ if (dir.equals("@")) { |
+ dir.set(FLAGS_resourcePath[0]); |
+ } |
+#endif |
this->makeDirOrFail(dir); |
for (int i = 0; i < fSuffixes.count(); i++) { |
dir = SkOSPath::SkPathJoin(dir.c_str(), fSuffixes[i].c_str()); |