add explicit filepaths to render_pictures JSON summary

BUG=skia:2230,skia:1942
R=rmistry@google.com

Author: epoger@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@14133 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tools/PictureRenderer.h b/tools/PictureRenderer.h
index 7c5a9da..26bdb77 100644
--- a/tools/PictureRenderer.h
+++ b/tools/PictureRenderer.h
@@ -44,20 +44,26 @@
 class ImageResultsSummary {
 public:
     /**
-     * Adds this bitmap hash to the summary of results.
+     * Adds this image to the summary of results.
      *
-     * @param testName name of the test
+     * @param sourceName name of the source file that generated this result
+     * @param fileName relative path to the image output file on local disk
      * @param hash hash to store
+     * @param tileNumber if not NULL, ptr to tile number
      */
-    void add(const char *testName, uint64_t hash);
+    void add(const char *sourceName, const char *fileName, uint64_t hash,
+             const int *tileNumber=NULL);
 
     /**
-     * Adds this bitmap's hash to the summary of results.
+     * Adds this image to the summary of results.
      *
-     * @param testName name of the test
+     * @param sourceName name of the source file that generated this result
+     * @param fileName relative path to the image output file on local disk
      * @param bitmap bitmap to store the hash of
+     * @param tileNumber if not NULL, ptr to tile number
      */
-    void add(const char *testName, const SkBitmap& bitmap);
+    void add(const char *sourceName, const char *fileName, const SkBitmap& bitmap,
+             const int *tileNumber=NULL);
 
     /**
      * Writes the summary (as constructed so far) to a file.
@@ -67,7 +73,7 @@
     void writeToFile(const char *filename);
 
 private:
-    Json::Value fActualResultsNoComparison;
+    Json::Value fActualResults;
 };
 
 class PictureRenderer : public SkRefCnt {