#include "cc/test/pixel_comparator.h"
#include <stdint.h>
#include <algorithm>
#include "base/check_op.h"
#include "base/logging.h"
#include "ui/gfx/geometry/rect.h"
namespace cc {
bool ExactPixelComparator::Compare(const SkBitmap& actual_bmp,
const SkBitmap& expected_bmp) const { … }
ManhattanDistancePixelComparator::ManhattanDistancePixelComparator(
int tolerance)
: … { … }
bool ManhattanDistancePixelComparator::Compare(
const SkBitmap& actual_bmp,
const SkBitmap& expected_bmp) const { … }
bool FuzzyPixelComparator::Compare(const SkBitmap& actual_bmp,
const SkBitmap& expected_bmp) const { … }
}