aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm/DMJsonWriter.cpp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-01-30 11:00:12 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-30 11:00:12 -0800
commit022afb8384019b448c7c1c62a9ff63fa9e477737 (patch)
tree13d646c61c5dd75b1515c9d5f2d4b76532001be2 /dm/DMJsonWriter.cpp
parent23b03c3c5a79d624c12bd1af5d11ba87967c53e2 (diff)
DM::NullSink
Motivation: The null sink can act as a control for experiments. Review URL: https://codereview.chromium.org/873723007
Diffstat (limited to 'dm/DMJsonWriter.cpp')
-rw-r--r--dm/DMJsonWriter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/dm/DMJsonWriter.cpp b/dm/DMJsonWriter.cpp
index 56c1301df1..8f1fa7ed3c 100644
--- a/dm/DMJsonWriter.cpp
+++ b/dm/DMJsonWriter.cpp
@@ -75,6 +75,7 @@ void JsonWriter::DumpJson() {
}
SkString path = SkOSPath::Join(FLAGS_writePath[0], "dm.json");
+ sk_mkdir(FLAGS_writePath[0]);
SkFILEWStream stream(path.c_str());
stream.writeText(Json::StyledWriter().write(root).c_str());
stream.flush();