Flutter Engine
The Flutter Engine
|
#include "include/core/SkBitmap.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorPriv.h"
#include "include/core/SkString.h"
#include "include/private/base/SkTArray.h"
Go to the source code of this file.
Classes | |
struct | DiffResource |
struct | DiffRecord |
class | CompareDiffMetrics |
class | CompareDiffWeighted |
class | CompareDiffMeanMismatches |
class | CompareDiffMaxMismatches |
Macros | |
#define | PATH_DIV_STR "/" |
#define | PATH_DIV_CHAR '/' |
#define | MAX2(a, b) (((b) < (a)) ? (a) : (b)) |
#define | MAX3(a, b, c) (((b) < (a)) ? MAX2((a), (c)) : MAX2((b), (c))) |
Typedefs | |
typedef skia_private::TArray< DiffRecord > | RecordArray |
typedef SkPMColor(* | DiffMetricProc) (SkPMColor, SkPMColor) |
Parameterized routine to compute the color of a pixel in a difference image. More... | |
Functions | |
template<typename T > | |
int | compare (const void *untyped_lhs, const void *untyped_rhs) |
static SkPMColor | compute_diff_pmcolor (SkPMColor c0, SkPMColor c1) |
void | compute_diff (DiffRecord *dr, DiffMetricProc diffFunction, const int colorThreshold) |
typedef skia_private::TArray<DiffRecord> RecordArray |
A wrapper for any sortProc (comparison routine) which applies a first-order sort beforehand, and a tiebreaker if the sortProc returns 0.
Definition at line 161 of file skdiff.h.
void compute_diff | ( | DiffRecord * | dr, |
DiffMetricProc | diffFunction, | ||
const int | colorThreshold | ||
) |
When finished, dr->fResult should have some value other than kUnknown_Result. Expects dr->fWhite.fBitmap and dr->fDifference.fBitmap to have the same bounds as dr->fBase.fBitmap and have a valid pixelref.
Definition at line 158 of file skdiff.cpp.
Definition at line 258 of file skdiff.h.