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>
This commit is contained in:
Mike Reed 2018-01-12 11:07:44 -05:00
parent 98e38e2ac5
commit ec48afdc2a

View File

@ -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: