72c9faab45
This fixes every case where virtual and SK_OVERRIDE were on the same line, which should be the bulk of cases. We'll have to manually clean up the rest over time unless I level up in regexes. for f in (find . -type f); perl -p -i -e 's/virtual (.*)SK_OVERRIDE/\1SK_OVERRIDE/g' $f; end BUG=skia: Review URL: https://codereview.chromium.org/806653007
31 lines
683 B
C++
31 lines
683 B
C++
/*
|
|
* 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 SK_OVERRIDE { return "perceptual"; }
|
|
virtual bool diff(SkBitmap* baseline, SkBitmap* test, const BitmapsToCreate& bitmapsToCreate,
|
|
Result* result) const SK_OVERRIDE;
|
|
|
|
private:
|
|
typedef SkImageDiffer INHERITED;
|
|
};
|
|
|
|
|
|
#endif
|