2 * Copyright 2013 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
8 #ifndef SkPMetric_DEFINED
9 #define SkPMetric_DEFINED
12 #include "SkTDArray.h"
14 #include "SkImageDiffer.h"
17 * An image differ that uses the pdiff image metric to compare images.
19 class SkPMetric : public SkImageDiffer {
21 const char* getName() const SK_OVERRIDE { return "perceptual"; }
22 virtual bool diff(SkBitmap* baseline, SkBitmap* test, const BitmapsToCreate& bitmapsToCreate,
23 Result* result) const SK_OVERRIDE;
26 typedef SkImageDiffer INHERITED;