Skip to content
Commit cff610bf authored by Jayant Chowdhary's avatar Jayant Chowdhary
Browse files

camera2: update original ByteBuffer using bulk get on 'viewed' ByteBuffer for correct position



When we use any of the viewed methods from ByteBuffer such as
asFloatBuffer, the returned buffer's position and the original
ByteBuffer's positions are independent. So update the original
ByteBuffer's position as well, for correct accounting.

Bug: 239639757

Test: Camera CTS; GCA
Test: MarshalQueryableArray error logs don't appear in logcat while using GCA

Change-Id: I488a23c278ee5d044c2423a616e598a93cbbad0b
Signed-off-by: default avatarJayant Chowdhary <jchowdhary@google.com>
parent 0de21da9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment