blob: 46d5dd8bd21d190d1ffc451921025cfda1791e0f [file] [log] [blame]
/*
* Copyright 2025 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef ComparePixels_DEFINED
#define ComparePixels_DEFINED
#include "include/core/SkColor.h"
#include <functional>
class SkPixmap;
using ComparePixmapsErrorReporter = void(int x, int y, const float diffs[4]);
bool ComparePixels(const SkPixmap& a,
const SkPixmap& b,
const float tolRGBA[4],
std::function<ComparePixmapsErrorReporter>& error);
bool CheckSolidPixels(const SkColor4f& col,
const SkPixmap& pixmap,
const float tolRGBA[4],
std::function<ComparePixmapsErrorReporter>& error);
#endif