Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Unified Diff: experimental/skpdiff/SkImageDiffer.h

Issue 18176005: add point of interest API (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: constant zero buffer Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/skpdiff/SkCLImageDiffer.cpp ('k') | experimental/skpdiff/SkImageDiffer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « experimental/skpdiff/SkCLImageDiffer.cpp ('k') | experimental/skpdiff/SkImageDiffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698