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

This commit is contained in:
Marco Nelissen
2012-10-10 08:06:56 -07:00
committed by Android (Google) Code Review

View File

@@ -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);
}
/**