| Index: experimental/skpdiff/SkImageDiffer.h
|
| diff --git a/experimental/skpdiff/SkImageDiffer.h b/experimental/skpdiff/SkImageDiffer.h
|
| index 86cf5bf8013efd3109c8b4b5d16505c20a26ba0c..c06538df1766f769d99f786f27aea0303493d178 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 @@ public:
|
| 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;
|
| };
|
|
|