DM: add --writePath

For fun, make the output prettier, hiding ", N failures" unless there is one.

BUG=
R=bsalomon@google.com

Review URL: https://codereview.chromium.org/29293003

git-svn-id: http://skia.googlecode.com/svn/trunk@11867 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/dm/DMCpuTask.cpp b/dm/DMCpuTask.cpp
index 14f661a..316f341 100644
--- a/dm/DMCpuTask.cpp
+++ b/dm/DMCpuTask.cpp
@@ -1,6 +1,7 @@
 #include "DMCpuTask.h"
 #include "DMReplayTask.h"
 #include "DMUtil.h"
+#include "DMWriteTask.h"
 #include "SkCommandLineFlags.h"
 
 DEFINE_bool(replay, false, "If true, run replay tests for each CpuTask.");
@@ -41,6 +42,7 @@
         this->spawnChild(SkNEW_ARGS(ReplayTask,
                                    ("replay", *this, fGMFactory(NULL), bitmap)));
     }
+    this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap)));
 }
 
 bool CpuTask::shouldSkip() const {