blob: 0448708980170b36ac25937bebd8de5ef686f187 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkPMetric_DEFINED
#define SkPMetric_DEFINED
#include "SkTArray.h"
#include "SkTDArray.h"
#include "SkImageDiffer.h"
/**
* An image differ that uses the pdiff image metric to compare images.
*/
class SkPMetric : public SkImageDiffer {
public:
const char* getName() const override { return "perceptual"; }
virtual bool diff(SkBitmap* baseline, SkBitmap* test, const BitmapsToCreate& bitmapsToCreate,
Result* result) const override;
private:
typedef SkImageDiffer INHERITED;
};
#endif
|