Merge "Update pixelRef genID when reusing pixels in RecyclingClippingPixelAllocator." into nyc-dev

This commit is contained in:
Derek Sollenberger
2016-03-25 18:18:20 +00:00
committed by Android (Google) Code Review

View File

@@ -723,6 +723,7 @@ bool RecyclingClippingPixelAllocator::allocPixelRef(SkBitmap* bitmap, SkColorTab
// Make sure that the recycled bitmap has the correct alpha type.
mRecycledBitmap->setAlphaType(bitmap->alphaType());
bitmap->notifyPixelsChanged();
bitmap->lockPixels();
mNeedsCopy = false;