Index: tools/skpdiff/SkPMetric.h |
diff --git a/tools/skpdiff/SkPMetric.h b/tools/skpdiff/SkPMetric.h |
index 5963c2f33ca48257a99ae572d844bd9fa1c6e117..b60858a6597c3ce7663b0398aa0bb5a1adb98844 100644 |
--- a/tools/skpdiff/SkPMetric.h |
+++ b/tools/skpdiff/SkPMetric.h |
@@ -18,23 +18,11 @@ |
*/ |
class SkPMetric : public SkImageDiffer { |
public: |
- virtual const char* getName() SK_OVERRIDE; |
- virtual int queueDiff(SkBitmap* baseline, SkBitmap* test) SK_OVERRIDE; |
- virtual void deleteDiff(int id) SK_OVERRIDE; |
- virtual bool isFinished(int id) SK_OVERRIDE; |
- virtual double getResult(int id) SK_OVERRIDE; |
- virtual int getPointsOfInterestCount(int id) SK_OVERRIDE; |
- virtual SkIPoint* getPointsOfInterest(int id) SK_OVERRIDE; |
+ virtual const char* getName() const SK_OVERRIDE { return "perceptual"; } |
+ virtual bool diff(SkBitmap* baseline, SkBitmap* test, bool computeMask, |
+ Result* result) const SK_OVERRIDE; |
private: |
- struct QueuedDiff { |
- bool finished; |
- double result; |
- SkTDArray<SkIPoint> poi; |
- }; |
- |
- SkTArray<QueuedDiff> fQueuedDiffs; |
- |
typedef SkImageDiffer INHERITED; |
}; |