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