aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm/DMJsonWriter.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-01-27 14:46:26 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-27 14:46:26 -0800
commit62bd1a69ea49318aa5022151262c842887e0ecf4 (patch)
tree2670b2993dc0692d7881c103b75242d113265e81 /dm/DMJsonWriter.h
parent6dbfb21a6c88af6d94e8c823c3ad559f1a41b493 (diff)
add -r to DM
$ out/Debug/dm -w good $ out/Debug/dm -r good -w bad && echo "hooray no diffs!" BUG=skia: Review URL: https://codereview.chromium.org/863093003
Diffstat (limited to 'dm/DMJsonWriter.h')
-rw-r--r--dm/DMJsonWriter.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/dm/DMJsonWriter.h b/dm/DMJsonWriter.h
index 58d85d358d..593484688b 100644
--- a/dm/DMJsonWriter.h
+++ b/dm/DMJsonWriter.h
@@ -44,7 +44,14 @@ public:
* Write all collected results to the file FLAGS_writePath[0]/dm.json.
*/
static void DumpJson();
+
+ /**
+ * Read JSON file at path written by DumpJson, calling callback for each
+ * BitmapResult recorded in the file. Return success.
+ */
+ static bool ReadJson(const char* path, void(*callback)(BitmapResult));
};
+
} // namespace DM
#endif // DMJsonWriter_DEFINED