17#if defined(SK_BUILD_FOR_WIN)
18 #define PATH_DIV_STR "\\"
19 #define PATH_DIV_CHAR '\\'
21 #define PATH_DIV_STR "/"
22 #define PATH_DIV_CHAR '/'
25#define MAX2(a,b) (((b) < (a)) ? (a) : (b))
26#define MAX3(a,b,c) (((b) < (a)) ? MAX2((a), (c)) : MAX2((b), (c)))
161template<
typename T>
int compare(
const void* untyped_lhs,
const void* untyped_rhs) {
172 int result = T::comparePixels(lhs, rhs);
221 if (leftValue < rightValue) {
224 if (rightValue < leftValue) {
242 if (leftValue < rightValue) {
245 if (rightValue < leftValue) {
#define SkGetPackedB32(packed)
#define SkGetPackedR32(packed)
#define SkGetPackedG32(packed)
static SkPMColor SkPackARGB32(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
static int32_t SkAbs32(int32_t value)
static int comparePixels(const DiffRecord *lhs, const DiffRecord *rhs)
static int comparePixels(const DiffRecord *lhs, const DiffRecord *rhs)
static int comparePixels(const DiffRecord *lhs, const DiffRecord *rhs)
static int comparePixels(const DiffRecord *lhs, const DiffRecord *rhs)
const char * c_str() const
DEF_SWITCHES_START aot vmservice shared library name
SkPMColor(* DiffMetricProc)(SkPMColor, SkPMColor)
Parameterized routine to compute the color of a pixel in a difference image.
void compute_diff(DiffRecord *dr, DiffMetricProc diffFunction, const int colorThreshold)
static SkPMColor compute_diff_pmcolor(SkPMColor c0, SkPMColor c1)
int compare(const void *untyped_lhs, const void *untyped_rhs)
skia_private::TArray< DiffRecord > RecordArray
static char const *const ResultNames[DiffRecord::kResultCount]
static Result getResultByName(const char *name)
Result fResult
Which category of diff result.
@ kCouldNotCompare_Result
@ kDifferentPixels_Result
float fFractionDifference
static const char * getResultDescription(Result result)
static char const *const StatusNames[DiffResource::kStatusCount]
static Status getStatusByName(const char *name)
static const char * getStatusDescription(Status status)
static bool isStatusFailed(Status status)
static bool getMatchingStatuses(char *selector, bool statuses[kStatusCount])