diff options
| author | Yang Ni <yangni@google.com> | 2015-11-11 15:08:16 -0800 |
|---|---|---|
| committer | Yang Ni <yangni@google.com> | 2015-11-13 18:07:20 +0000 |
| commit | fef0cd45027f235126d4fb62bda5ea9037450d9c (patch) | |
| tree | 452dc75054049bba6a276c3b6452db9b32bbc8f4 /cpp/RenderScript.cpp | |
| parent | 134f1caac86bcb9d4a15f79caa5c07e89dafff3d (diff) | |
Various fixes in setting globals in a script group
Bug: 25602504
1) Fixed setting 64-bit globals on a 32-bit platform.
The long values were casted to pointer-size integers (uintptr_t) or void*
in the runtime implementation. This caused the upper 32 bits to be lost
on 32-bit platforms. Fixed that by casting to int64_t instead.
2) Fixed setting Allocation values (either as arg or a global) in a script
group.
The size for a value in a script is signed, with -1 indicating that the
value is an Allocation. The sign has to be kept across different layers
of our stack.
3) Added a test for both native and support libraries for passing
floating point values to a script group, and for passing 64-bit values
(long or double) to a script group.
Change-Id: Ifff099a76be7707df7b67c388395f5a00f9cae66
Diffstat (limited to 'cpp/RenderScript.cpp')
0 files changed, 0 insertions, 0 deletions
