Index: tools/skdiff_utils.cpp |
diff --git a/tools/skdiff_utils.cpp b/tools/skdiff_utils.cpp |
index 5ca3d8085d054592146cdc35b2ffed5cc4d02d5f..5c9aae275aab23dd7755f6490e774522ac0bb3c6 100644 |
--- a/tools/skdiff_utils.cpp |
+++ b/tools/skdiff_utils.cpp |
@@ -144,11 +144,9 @@ void create_and_write_diff_image(DiffRecord* drp, |
if (w != drp->fComparison.fBitmap.width() || h != drp->fComparison.fBitmap.height()) { |
drp->fResult = DiffRecord::kDifferentSizes_Result; |
} else { |
- drp->fDifference.fBitmap.setConfig(SkBitmap::kARGB_8888_Config, w, h); |
- drp->fDifference.fBitmap.allocPixels(); |
+ drp->fDifference.fBitmap.allocN32Pixels(w, h); |
- drp->fWhite.fBitmap.setConfig(SkBitmap::kARGB_8888_Config, w, h); |
- drp->fWhite.fBitmap.allocPixels(); |
+ drp->fWhite.fBitmap.allocN32Pixels(w, h); |
SkASSERT(DiffRecord::kUnknown_Result == drp->fResult); |
compute_diff(drp, dmp, colorThreshold); |