| * 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 SkDifferentPixelsMetric_DEFINED |
| #define SkDifferentPixelsMetric_DEFINED |
| #include "SkCLImageDiffer.h" |
| #include "SkImageDiffer.h" |
| * A differ that measures the percentage of different corresponding pixels. If the two images are |
| * not the same size or have no pixels, the result will always be zero. |
| class SkDifferentPixelsMetric : |
| virtual const char* getName() const SK_OVERRIDE; |
| virtual bool diff(SkBitmap* baseline, SkBitmap* test, |
| const BitmapsToCreate& bitmapsToCreate, |
| Result* result) const SK_OVERRIDE; |
| virtual bool onInit() SK_OVERRIDE; |
| typedef SkCLImageDiffer INHERITED; |
| typedef SkImageDiffer INHERITED; |