Merge "Adjust buffer position after copying" into jb-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
437e9cc388
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user