diff options
author | Stephen Hines <srhines@google.com> | 2010-10-01 15:39:33 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2010-10-01 15:39:33 -0700 |
commit | ef1dac28d3bf98bd61cd9874fb3ccab42105e9b6 (patch) | |
tree | 6cf05f6f4969a0c9818923240ad4ce0aeb8cede6 /graphics/java/android/renderscript/Element.java | |
parent | 02f41705199336f808ece50d81585450e7f8f61f (diff) | |
download | frameworks_base-ef1dac28d3bf98bd61cd9874fb3ccab42105e9b6.zip frameworks_base-ef1dac28d3bf98bd61cd9874fb3ccab42105e9b6.tar.gz frameworks_base-ef1dac28d3bf98bd61cd9874fb3ccab42105e9b6.tar.bz2 |
Support for 64-bit integer type.
b/3050131 exported renderscript structures don't appear to support int64_t
Change-Id: I9aea676425b694a3a6457e63e38b00e591847e20
Diffstat (limited to 'graphics/java/android/renderscript/Element.java')
-rw-r--r-- | graphics/java/android/renderscript/Element.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/graphics/java/android/renderscript/Element.java b/graphics/java/android/renderscript/Element.java index dd9fa15..91824e6 100644 --- a/graphics/java/android/renderscript/Element.java +++ b/graphics/java/android/renderscript/Element.java @@ -43,7 +43,7 @@ public class Element extends BaseObj { SIGNED_8 (4, 1), SIGNED_16 (5, 2), SIGNED_32 (6, 4), - //SIGNED_64 (7, 8), + SIGNED_64 (7, 8), UNSIGNED_8 (8, 1), UNSIGNED_16 (9, 2), UNSIGNED_32 (10, 4), @@ -142,6 +142,13 @@ public class Element extends BaseObj { return rs.mElement_I32; } + public static Element I64(RenderScript rs) { + if(rs.mElement_I64 == null) { + rs.mElement_I64 = createUser(rs, DataType.SIGNED_64); + } + return rs.mElement_I64; + } + public static Element F32(RenderScript rs) { if(rs.mElement_F32 == null) { rs.mElement_F32 = createUser(rs, DataType.FLOAT_32); |