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

Commit 2a94a10b authored by Derek Sollenberger's avatar Derek Sollenberger
Browse files

Update the rowBytes when reconfiguring to match the new imageInfo.

bug: 20872840
Change-Id: Ic98a9d16e095c27ddcc193a18641732c1ee4bad0
parent c7e56e9d
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() {