From 62bd1a69ea49318aa5022151262c842887e0ecf4 Mon Sep 17 00:00:00 2001 From: mtklein Date: Tue, 27 Jan 2015 14:46:26 -0800 Subject: 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 --- dm/DMJsonWriter.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'dm/DMJsonWriter.h') 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 -- cgit v1.2.3