add point of interest API

R=bsalomon@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@9806 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/skpdiff/SkImageDiffer.h b/experimental/skpdiff/SkImageDiffer.h
index 86cf5bf..c06538d 100644
--- a/experimental/skpdiff/SkImageDiffer.h
+++ b/experimental/skpdiff/SkImageDiffer.h
@@ -9,6 +9,7 @@
 #define SkImageDiffer_DEFINED
 
 class SkBitmap;
+struct SkIPoint;
 
 /**
  * Encapsulates an image difference metric algorithm that can be potentially run asynchronously.
@@ -54,14 +55,35 @@
     virtual bool isFinished(int id) = 0;
 
     /**
+     * Deletes memory associated with a diff and its results. This may block execution until the
+     * diff is finished,
+     * @param id The id of the diff to query
+     */
+    virtual void deleteDiff(int id) = 0;
+
+    /**
      * Gets the results of the queued diff of the given id. The results are only meaningful after
      * the queued diff has finished.
      * @param  id The id of the queued diff to query
-     * @return    A score between of how different the compared images are, with lower numbers being
-     *            more different.
      */
     virtual double getResult(int id) = 0;
 
+    /**
+     * Gets the number of points of interest for the diff of the given id. The results are only
+     * meaningful after the queued diff has finished.
+     * @param  id The id of the queued diff to query
+     */
+    virtual int getPointsOfInterestCount(int id) = 0;
+
+    /**
+     * Gets an array of the points of interest for the diff of the given id. The results are only
+     * meaningful after the queued diff has finished.
+     * @param  id The id of the queued diff to query
+     */
+    virtual SkIPoint* getPointsOfInterest(int id) = 0;
+
+
+
 protected:
     bool fIsGood;
 };