Lines Matching full:diff
79 static void print_pixel_count(SkFILEWStream* stream, const DiffRecord& diff) { in print_pixel_count() argument
81 stream->writeDecAsText(static_cast<int>(diff.fFractionDifference * in print_pixel_count()
82 diff.fBase.fBitmap.width() * in print_pixel_count()
83 diff.fBase.fBitmap.height())); in print_pixel_count()
86 stream->writeDecAsText(diff.fWeightedFraction * in print_pixel_count()
87 diff.fBaseWidth * in print_pixel_count()
88 diff.fBaseHeight); in print_pixel_count()
93 static void print_checkbox_cell(SkFILEWStream* stream, const DiffRecord& diff) { in print_checkbox_cell() argument
95 stream->writeText(diff.fBase.fFilename.c_str()); in print_checkbox_cell()
99 static void print_label_cell(SkFILEWStream* stream, const DiffRecord& diff) { in print_label_cell() argument
103 stream->writeText(diff.fBase.fFilename.c_str()); in print_label_cell()
105 switch (diff.fResult) { in print_label_cell()
116 sprintf(metricBuf, "%.4f%%", 100 * diff.fFractionDifference); in print_label_cell()
120 sprintf(metricBuf, "%.4f%%", 100 * diff.fWeightedFraction); in print_label_cell()
124 if (diff.fFractionDifference < 0.01) { in print_label_cell()
125 print_pixel_count(stream, diff); in print_label_cell()
128 if (SkScalarRoundToInt(diff.fAverageMismatchA) > 0) { in print_label_cell()
130 stream->writeDecAsText(SkScalarRoundToInt(diff.fAverageMismatchA)); in print_label_cell()
134 stream->writeDecAsText(SkScalarRoundToInt(diff.fMaxMismatchA)); in print_label_cell()
137 stream->writeDecAsText(static_cast<int>(diff.fTotalMismatchA)); in print_label_cell()
141 stream->writeDecAsText(SkScalarRoundToInt(MAX3(diff.fAverageMismatchR, in print_label_cell()
142 diff.fAverageMismatchG, in print_label_cell()
143 diff.fAverageMismatchB))); in print_label_cell()
145 stream->writeDecAsText(MAX3(diff.fMaxMismatchR, in print_label_cell()
146 diff.fMaxMismatchG, in print_label_cell()
147 diff.fMaxMismatchB)); in print_label_cell()
152 stream->writeText(DiffResource::getStatusDescription(diff.fBase.fStatus)); in print_label_cell()
154 stream->writeText(DiffResource::getStatusDescription(diff.fComparison.fStatus)); in print_label_cell()
212 static void print_diff_row(SkFILEWStream* stream, DiffRecord& diff, const SkString& relativePath) { in print_diff_row() argument
214 print_checkbox_cell(stream, diff); in print_diff_row()
215 print_label_cell(stream, diff); in print_diff_row()
216 print_diff_resource_cell(stream, diff.fWhite, relativePath, true); in print_diff_row()
217 print_diff_resource_cell(stream, diff.fDifference, relativePath, true); in print_diff_row()
218 print_diff_resource_cell(stream, diff.fBase, relativePath, false); in print_diff_row()
219 print_diff_resource_cell(stream, diff.fComparison, relativePath, false); in print_diff_row()
287 DiffRecord* diff = differences[i]; in print_diff_page() local
289 switch (diff->fResult) { in print_diff_page()
290 // Cases in which there is no diff to report. in print_diff_page()
294 // Cases in which we want a detailed pixel diff. in print_diff_page()
298 print_diff_row(&outputStream, *diff, relativePath); in print_diff_page()