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

Commit 437e9cc3 authored by Marco Nelissen's avatar Marco Nelissen Committed by Android (Google) Code Review
Browse files

Merge "Adjust buffer position after copying" into jb-mr1-dev

parents f6138f07 55adc145
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -413,6 +413,11 @@ public final class Bitmap implements Parcelable {
        }

        nativeCopyPixelsFromBuffer(mNativeBitmap, src);

        // now update the buffer's position
        int position = src.position();
        position += bitmapBytes >> shift;
        src.position(position);
    }

    /**