Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Unified Diff: tools/skdiff_utils.cpp

Issue 322963002: hide SkBitmap::setConfig (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/picture_utils.cpp ('k') | tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « tools/picture_utils.cpp ('k') | tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698