Home | History | Annotate | Download | only in tools

Lines Matching refs:drp

120 void create_and_write_diff_image(DiffRecord* drp,
125 const int w = drp->fBase.fBitmap.width();
126 const int h = drp->fBase.fBitmap.height();
128 if (w != drp->fComparison.fBitmap.width() || h != drp->fComparison.fBitmap.height()) {
129 drp->fResult = DiffRecord::kDifferentSizes_Result;
131 drp->fDifference.fBitmap.allocN32Pixels(w, h);
133 drp->fWhite.fBitmap.allocN32Pixels(w, h);
135 SkASSERT(DiffRecord::kUnknown_Result == drp->fResult);
136 compute_diff(drp, dmp, colorThreshold);
137 SkASSERT(DiffRecord::kUnknown_Result != drp->fResult);
141 drp->fDifference.fStatus = DiffResource::kUnspecified_Status;
142 drp->fWhite.fStatus = DiffResource::kUnspecified_Status;
145 drp->fDifference.fFilename = filename_to_diff_filename(filename);
146 drp->fDifference.fFullPath = outputDir;
147 drp->fDifference.fFullPath.append(drp->fDifference.fFilename);
148 drp->fDifference.fStatus = DiffResource::kSpecified_Status;
150 drp->fWhite.fFilename = filename_to_white_filename(filename);
151 drp->fWhite.fFullPath = outputDir;
152 drp->fWhite.fFullPath.append(drp->fWhite.fFilename);
153 drp->fWhite.fStatus = DiffResource::kSpecified_Status;
155 if (DiffRecord::kDifferentPixels_Result == drp->fResult) {
156 if (write_bitmap(drp->fDifference.fFullPath, drp->fDifference.fBitmap)) {
157 drp->fDifference.fStatus = DiffResource::kExists_Status;
159 drp->fDifference.fStatus = DiffResource::kDoesNotExist_Status;
161 if (write_bitmap(drp->fWhite.fFullPath, drp->fWhite.fBitmap)) {
162 drp->fWhite.fStatus = DiffResource::kExists_Status;
164 drp->fWhite.fStatus = DiffResource::kDoesNotExist_Status;