Searched refs:DiffRecord (Results 1 – 9 of 9) sorted by relevance
/external/skia/tools/ |
D | skdiff.h | 87 struct DiffRecord { struct 101 static char const * const ResultNames[DiffRecord::kResultCount]; argument 111 DiffRecord() in DiffRecord() function 157 typedef SkTDArray<DiffRecord*> RecordArray; argument 162 const DiffRecord* lhs = *reinterpret_cast<DiffRecord* const *>(untyped_lhs); in compare() 163 const DiffRecord* rhs = *reinterpret_cast<DiffRecord* const *>(untyped_rhs); in compare() 186 static int comparePixels(const DiffRecord* lhs, const DiffRecord* rhs) { in comparePixels() 199 static int comparePixels(const DiffRecord* lhs, const DiffRecord* rhs) { in comparePixels() 214 static int comparePixels(const DiffRecord* lhs, const DiffRecord* rhs) { in comparePixels() 235 static int comparePixels(const DiffRecord* lhs, const DiffRecord* rhs) { in comparePixels() [all …]
|
D | skdiff_main.cpp | 73 for (int i = 0; i < DiffRecord::kResultCount; ++i) { in ~DiffSummary() 88 FileArray fResultsOfType[DiffRecord::kResultCount]; 91 StringArray fFailedBaseNames[DiffRecord::kResultCount]; 146 void print(bool listFilenames, bool failOnResultType[DiffRecord::kResultCount], in print() 150 for (int resultInt = 0; resultInt < DiffRecord::kResultCount; ++resultInt) { in print() 151 DiffRecord::Result result = static_cast<DiffRecord::Result>(resultInt); in print() 157 printContents(fResultsOfType[result], DiffRecord::getResultDescription(result), in print() 159 if (DiffRecord::kCouldNotCompare_Result == result) { in print() 172 for (int resultInt = 0; resultInt < DiffRecord::kResultCount; ++resultInt) { in printfFailingBaseNames() 175 printf("%s [%d]%s", DiffRecord::ResultNames[resultInt], array.count(), separator); in printfFailingBaseNames() [all …]
|
D | skdiff.cpp | 14 /*static*/ char const * const DiffRecord::ResultNames[DiffRecord::kResultCount] = { 23 DiffRecord::Result DiffRecord::getResultByName(const char *name) { in getResultByName() 24 for (int result = 0; result < DiffRecord::kResultCount; ++result) { in getResultByName() 25 if (0 == strcmp(DiffRecord::ResultNames[result], name)) { in getResultByName() 26 return static_cast<DiffRecord::Result>(result); in getResultByName() 29 return DiffRecord::kResultCount; in getResultByName() 32 static char const * const ResultDescriptions[DiffRecord::kResultCount] = { 41 const char* DiffRecord::getResultDescription(DiffRecord::Result result) { in getResultDescription() 158 void compute_diff(DiffRecord* dr, DiffMetricProc diffFunction, const int colorThreshold) { in compute_diff() 162 dr->fResult = DiffRecord::kDifferentSizes_Result; in compute_diff() [all …]
|
D | skdiff_html.cpp | 79 static void print_pixel_count(SkFILEWStream* stream, const DiffRecord& diff) { in print_pixel_count() 93 static void print_checkbox_cell(SkFILEWStream* stream, const DiffRecord& diff) { in print_checkbox_cell() 99 static void print_label_cell(SkFILEWStream* stream, const DiffRecord& diff) { in print_label_cell() 106 case DiffRecord::kEqualBits_Result: in print_label_cell() 109 case DiffRecord::kEqualPixels_Result: in print_label_cell() 112 case DiffRecord::kDifferentSizes_Result: in print_label_cell() 115 case DiffRecord::kDifferentPixels_Result: in print_label_cell() 150 case DiffRecord::kCouldNotCompare_Result: in print_label_cell() 212 static void print_diff_row(SkFILEWStream* stream, DiffRecord& diff, const SkString& relativePath) { in print_diff_row() 287 DiffRecord* diff = differences[i]; in print_diff_page() [all …]
|
D | skdiff_image.cpp | 27 DiffRecord* drp) { in create_diff_images() 54 drp->fResult = DiffRecord::kCouldNotCompare_Result; in create_diff_images() 59 drp->fResult = DiffRecord::kEqualBits_Result; in create_diff_images() 68 drp->fResult = DiffRecord::kCouldNotCompare_Result; in create_diff_images() 79 SkASSERT(DiffRecord::kUnknown_Result != drp->fResult); in create_diff_images() 132 bool failOnResultType[DiffRecord::kResultCount]; in tool_main() 133 for (int i = 0; i < DiffRecord::kResultCount; i++) { in tool_main() 153 DiffRecord::Result type = DiffRecord::getResultByName(argv[i]); in tool_main() 154 if (type != DiffRecord::kResultCount) { in tool_main() 329 DiffRecord dr; in tool_main() [all …]
|
D | skdiff_utils.cpp | 119 void create_and_write_diff_image(DiffRecord* drp, in create_and_write_diff_image() 128 drp->fResult = DiffRecord::kDifferentSizes_Result; in create_and_write_diff_image() 134 SkASSERT(DiffRecord::kUnknown_Result == drp->fResult); in create_and_write_diff_image() 136 SkASSERT(DiffRecord::kUnknown_Result != drp->fResult); in create_and_write_diff_image() 154 if (DiffRecord::kDifferentPixels_Result == drp->fResult) { in create_and_write_diff_image()
|
D | skdiff_utils.h | 47 void create_and_write_diff_image(DiffRecord* drp,
|
/external/llvm/tools/llvm-diff/ |
D | DiffLog.cpp | 35 Diff.push_back(DiffRecord(L, R)); in addMatch() 39 Diff.push_back(DiffRecord(L, DiffRecord::second_type(nullptr))); in addLeft() 43 Diff.push_back(DiffRecord(DiffRecord::first_type(nullptr), R)); in addRight()
|
D | DiffLog.h | 62 typedef std::pair<Instruction*,Instruction*> DiffRecord; typedef 63 SmallVector<DiffRecord, 20> Diff;
|