summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorOrion Hodson <oth@google.com>2019-04-15 16:14:51 +0100
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-04-16 21:42:46 +0000
commit9f7d5d81803d4f35885742eda77f847254a7fa76 (patch)
tree53782db29162ff3399649ed4e0f15b0213c3d392 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent2d361be44e67005b660f3525e9c043cfec00953e (diff)
Ensure all fields of AutoBufferPointer are initialized
In the process of revising libnativehelper interface, the initialization of the fArray field was dropped. This change fixes this and adds regression tests. In writing the tests, it became apparent that the AutoBufferPointer destructor would crash if the underlying buffer was heap array backed and the buffer position was non-zero. ReleasePrimitiveArrayCritical was called with the element corresponding to the current position rather than the first element. Bug: b/130390512 Test: atest FrameworksCoreTests:android.graphics.BitmapTest (cherry picked from commit e522c99430ec9ee0b4daa588dbcaea4824bc3f70) Merged-In: I319512aaede7ba8af5d013c9281417695abf9099 Change-Id: I319512aaede7ba8af5d013c9281417695abf9099 (cherry picked from commit 4174b7691f5c667598dc74ac80829a1bffd9bd4a)
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions