• Home
  • Raw
  • Download

Lines Matching refs:drp

136 void create_and_write_diff_image(DiffRecord* drp,  in create_and_write_diff_image()  argument
141 const int w = drp->fBase.fBitmap.width(); in create_and_write_diff_image()
142 const int h = drp->fBase.fBitmap.height(); in create_and_write_diff_image()
144 if (w != drp->fComparison.fBitmap.width() || h != drp->fComparison.fBitmap.height()) { in create_and_write_diff_image()
145 drp->fResult = DiffRecord::kDifferentSizes_Result; in create_and_write_diff_image()
147 drp->fDifference.fBitmap.allocN32Pixels(w, h); in create_and_write_diff_image()
149 drp->fWhite.fBitmap.allocN32Pixels(w, h); in create_and_write_diff_image()
151 SkASSERT(DiffRecord::kUnknown_Result == drp->fResult); in create_and_write_diff_image()
152 compute_diff(drp, dmp, colorThreshold); in create_and_write_diff_image()
153 SkASSERT(DiffRecord::kUnknown_Result != drp->fResult); in create_and_write_diff_image()
157 drp->fDifference.fStatus = DiffResource::kUnspecified_Status; in create_and_write_diff_image()
158 drp->fWhite.fStatus = DiffResource::kUnspecified_Status; in create_and_write_diff_image()
161 drp->fDifference.fFilename = filename_to_diff_filename(filename); in create_and_write_diff_image()
162 drp->fDifference.fFullPath = outputDir; in create_and_write_diff_image()
163 drp->fDifference.fFullPath.append(drp->fDifference.fFilename); in create_and_write_diff_image()
164 drp->fDifference.fStatus = DiffResource::kSpecified_Status; in create_and_write_diff_image()
166 drp->fWhite.fFilename = filename_to_white_filename(filename); in create_and_write_diff_image()
167 drp->fWhite.fFullPath = outputDir; in create_and_write_diff_image()
168 drp->fWhite.fFullPath.append(drp->fWhite.fFilename); in create_and_write_diff_image()
169 drp->fWhite.fStatus = DiffResource::kSpecified_Status; in create_and_write_diff_image()
171 if (DiffRecord::kDifferentPixels_Result == drp->fResult) { in create_and_write_diff_image()
172 if (write_bitmap(drp->fDifference.fFullPath, drp->fDifference.fBitmap)) { in create_and_write_diff_image()
173 drp->fDifference.fStatus = DiffResource::kExists_Status; in create_and_write_diff_image()
175 drp->fDifference.fStatus = DiffResource::kDoesNotExist_Status; in create_and_write_diff_image()
177 if (write_bitmap(drp->fWhite.fFullPath, drp->fWhite.fBitmap)) { in create_and_write_diff_image()
178 drp->fWhite.fStatus = DiffResource::kExists_Status; in create_and_write_diff_image()
180 drp->fWhite.fStatus = DiffResource::kDoesNotExist_Status; in create_and_write_diff_image()