summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorSeigo Nonaka <nona@google.com>2018-01-27 15:08:25 -0800
committerSeigo Nonaka <nona@google.com>2018-01-27 15:16:12 -0800
commitee23f61873497efc70045cc4794be9fdf18eed9f (patch)
tree414937e7e5575b2b8854a4a9bbd9568120aaae7b /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentb443123538268d7b1ab0e0d74e3e9e0b25162e72 (diff)
Fix JNI abort due to mismatched critical get/release call.
ReleasePrimitiveArrayCritical need to be called after GetPrimitiveArrayCritical. However doRunAdvance or doOffsetForAdvance may call JNI::DeleteGlobalRef if the SkTypeface is gone due to cache overflow. Thus, use GetArrayElements/ReleaseArrayElements with ScopedCharArrayRO. Bug: 70660389 Test: Test app attached to the bug. Change-Id: Ied8e74588783f11b437c3f2c6ea726a9c6d2fc9e
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions