+1
−0
+10
−19
libs/hwui/jni/BufferUtils.cpp
0 → 100644
+130
−0
libs/hwui/jni/BufferUtils.h
0 → 100644
+32
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Refactored ScopedJavaNioBuffer implementation to copy directly to std::vector<uint8_t> instances and release the jni critical array queries immediately after copying into a vector. This is to avoid potential interleavings of JNI method calls before destructor of ScopedJavaNioBuffer is invoked. As per jni requirements no other JNI calls are allowed after GetPrimitiveArrayCritical until a matching call to ReleasePrimitiveArrayCritical is made. Fixes: 271468824 Test: Added tests to MeshTest Change-Id: Ia4afd8b8584ae43f021c79b6a341b05e80e0e205