Revert "Simplify call when finished with bitmaps."

This reverts commit ec48afdc2a.

Reason for revert: broke skdiff

Original change's description:
> 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>

TBR=halcanary@google.com,reed@google.com

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug: skia:
Change-Id: Ic3586eb42d7a6cd6c4708381272a6c87a8c5fb1c
Reviewed-on: https://skia-review.googlesource.com/100360
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Florin Malita <fmalita@chromium.org>
This commit is contained in:
Florin Malita 2018-01-26 21:14:15 +00:00 committed by Skia Commit-Bot
parent 05d7416b37
commit 210b629b32

View File

@ -330,16 +330,10 @@ 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: