aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2018-01-12 11:07:44 -0500
committerGravatar Mike Reed <reed@google.com>2018-01-12 16:41:45 +0000
commitec48afdc2a345c0cd8d38983f5d241deddf8c7dd (patch)
tree48e843130d2e195d0176e8f45b86d5e78ddc9714
parent98e38e2ac5e91eb288eaeceb5b0f36f9b2dd412a (diff)
Simplify call when finished with bitmaps.
Bug: skia: Change-Id: I841052bdaf68f6ec4c98a045712941f313a7b27b Reviewed-on: https://skia-review.googlesource.com/94000 Reviewed-by: Hal Canary <halcanary@google.com>
-rw-r--r--tools/skdiff/skdiff_main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/skdiff/skdiff_main.cpp b/tools/skdiff/skdiff_main.cpp
index 59e9b0a6b7..9380785280 100644
--- a/tools/skdiff/skdiff_main.cpp
+++ b/tools/skdiff/skdiff_main.cpp
@@ -330,10 +330,16 @@ public:
SkASSERT(drp != nullptr);
}
~AutoReleasePixels() {
+#if 0
fDrp->fBase.fBitmap.setPixelRef(nullptr, 0, 0);
fDrp->fComparison.fBitmap.setPixelRef(nullptr, 0, 0);
fDrp->fDifference.fBitmap.setPixelRef(nullptr, 0, 0);
fDrp->fWhite.fBitmap.setPixelRef(nullptr, 0, 0);
+#endif
+ fDrp->fBase.fBitmap.reset();
+ fDrp->fComparison.fBitmap.reset();
+ fDrp->fDifference.fBitmap.reset();
+ fDrp->fWhite.fBitmap.reset();
}
private: