Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9da9df9b authored by Derek Sollenberger's avatar Derek Sollenberger Committed by The Android Automerger
Browse files

Update the rowBytes when reconfiguring to match the new imageInfo.

bug: 20872840
Change-Id: Ic98a9d16e095c27ddcc193a18641732c1ee4bad0
parent f0168433
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -224,7 +224,7 @@ void Bitmap::reconfigure(const SkImageInfo& info, size_t rowBytes,
}

void Bitmap::reconfigure(const SkImageInfo& info) {
    reconfigure(info, mPixelRef->rowBytes(), mPixelRef->colorTable());
    reconfigure(info, info.minRowBytes(), nullptr);
}

void Bitmap::detachFromJava() {