Searched refs:DiffResource (Results 1 – 7 of 7) sorted by relevance
/external/skia/tools/ |
D | skdiff.cpp | 45 /*static*/ char const * const DiffResource::StatusNames[DiffResource::kStatusCount] = { 61 DiffResource::Status DiffResource::getStatusByName(const char *name) { in getStatusByName() 62 for (int status = 0; status < DiffResource::kStatusCount; ++status) { in getStatusByName() 63 if (0 == strcmp(DiffResource::StatusNames[status], name)) { in getStatusByName() 64 return static_cast<DiffResource::Status>(status); in getStatusByName() 67 return DiffResource::kStatusCount; in getStatusByName() 70 static char const * const StatusDescriptions[DiffResource::kStatusCount] = { 86 const char* DiffResource::getStatusDescription(DiffResource::Status status) { in getStatusDescription() 90 bool DiffResource::isStatusFailed(DiffResource::Status status) { in isStatusFailed() 91 return DiffResource::kCouldNotDecode_Status == status || in isStatusFailed() [all …]
|
D | skdiff_image.cpp | 33 drp->fBase.fStatus = DiffResource::kSpecified_Status; in create_diff_images() 37 drp->fComparison.fStatus = DiffResource::kSpecified_Status; in create_diff_images() 41 drp->fBase.fStatus = DiffResource::kRead_Status; in create_diff_images() 45 drp->fComparison.fStatus = DiffResource::kRead_Status; in create_diff_images() 49 drp->fBase.fStatus = DiffResource::kCouldNotRead_Status; in create_diff_images() 52 drp->fComparison.fStatus = DiffResource::kCouldNotRead_Status; in create_diff_images() 65 if (DiffResource::kDecoded_Status != drp->fBase.fStatus || in create_diff_images() 66 DiffResource::kDecoded_Status != drp->fComparison.fStatus) in create_diff_images() 137 bool failOnStatusType[DiffResource::kStatusCount][DiffResource::kStatusCount]; in tool_main() 138 for (int base = 0; base < DiffResource::kStatusCount; ++base) { in tool_main() [all …]
|
D | skdiff_main.cpp | 75 for (int base = 0; base < DiffResource::kStatusCount; ++base) { in ~DiffSummary() 76 for (int comparison = 0; comparison < DiffResource::kStatusCount; ++comparison) { in ~DiffSummary() 88 FileArray fStatusOfType[DiffResource::kStatusCount][DiffResource::kStatusCount]; 108 bool failOnStatusType[DiffResource::kStatusCount] in printStatus() 109 [DiffResource::kStatusCount]) { in printStatus() 110 typedef DiffResource::Status Status; in printStatus() 112 for (int base = 0; base < DiffResource::kStatusCount; ++base) { in printStatus() 114 for (int comparison = 0; comparison < DiffResource::kStatusCount; ++comparison) { in printStatus() 124 DiffResource::getStatusDescription(baseStatus), in printStatus() 125 DiffResource::getStatusDescription(comparisonStatus), in printStatus() [all …]
|
D | skdiff_utils.cpp | 35 bool get_bitmap(SkData* fileBits, DiffResource& resource, SkImageDecoder::Mode mode) { in get_bitmap() 41 resource.fStatus = DiffResource::kCouldNotDecode_Status; in get_bitmap() 52 resource.fStatus = DiffResource::kCouldNotDecode_Status; in get_bitmap() 56 resource.fStatus = DiffResource::kDecoded_Status; in get_bitmap() 141 drp->fDifference.fStatus = DiffResource::kUnspecified_Status; in create_and_write_diff_image() 142 drp->fWhite.fStatus = DiffResource::kUnspecified_Status; in create_and_write_diff_image() 148 drp->fDifference.fStatus = DiffResource::kSpecified_Status; in create_and_write_diff_image() 153 drp->fWhite.fStatus = DiffResource::kSpecified_Status; in create_and_write_diff_image() 157 drp->fDifference.fStatus = DiffResource::kExists_Status; in create_and_write_diff_image() 159 drp->fDifference.fStatus = DiffResource::kDoesNotExist_Status; in create_and_write_diff_image() [all …]
|
D | skdiff.h | 29 struct DiffResource { struct 57 static char const * const StatusNames[DiffResource::kStatusCount]; argument 76 DiffResource() : fFilename(), fFullPath(), fBitmap(), fStatus(kUnknown_Status) { }; in DiffResource() argument 130 DiffResource fBase; 131 DiffResource fComparison; 132 DiffResource fDifference; 133 DiffResource fWhite;
|
D | skdiff_html.cpp | 152 stream->writeText(DiffResource::getStatusDescription(diff.fBase.fStatus)); in print_label_cell() 154 stream->writeText(DiffResource::getStatusDescription(diff.fComparison.fStatus)); in print_label_cell() 181 static void print_diff_resource_cell(SkFILEWStream* stream, DiffResource& resource, in print_diff_resource_cell() 184 if (DiffResource::kCouldNotDecode_Status == resource.fStatus) { in print_diff_resource_cell()
|
D | skdiff_utils.h | 29 bool get_bitmap(SkData* fileBits, DiffResource& resource, SkImageDecoder::Mode mode);
|