diff options
author | Stephen Hines <srhines@google.com> | 2010-10-11 10:54:21 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2010-10-11 12:32:33 -0700 |
commit | 031ec58cfc7a20927302a5300eba3f5fc1709b50 (patch) | |
tree | 4a5719c7c6c89b66d8a304d0df333810b2a2aa3f /graphics/jni | |
parent | c2a443250768086a609c5666f23d93316d84252c (diff) | |
download | frameworks_base-031ec58cfc7a20927302a5300eba3f5fc1709b50.zip frameworks_base-031ec58cfc7a20927302a5300eba3f5fc1709b50.tar.gz frameworks_base-031ec58cfc7a20927302a5300eba3f5fc1709b50.tar.bz2 |
Fix support for 64-bit integers.
Change-Id: I4e2146a5fda41f280ee3f6f685a34f3cff28f05e
Diffstat (limited to 'graphics/jni')
-rw-r--r-- | graphics/jni/android_renderscript_RenderScript.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/graphics/jni/android_renderscript_RenderScript.cpp b/graphics/jni/android_renderscript_RenderScript.cpp index 3e52fef..586d7e9 100644 --- a/graphics/jni/android_renderscript_RenderScript.cpp +++ b/graphics/jni/android_renderscript_RenderScript.cpp @@ -780,6 +780,13 @@ nScriptSetVarI(JNIEnv *_env, jobject _this, RsContext con, jint script, jint slo } static void +nScriptSetVarJ(JNIEnv *_env, jobject _this, RsContext con, jint script, jint slot, jlong val) +{ + LOG_API("nScriptSetVarJ, con(%p), s(%p), slot(%i), val(%lli)", con, (void *)script, slot, val); + rsScriptSetVarJ(con, (RsScript)script, slot, val); +} + +static void nScriptSetVarF(JNIEnv *_env, jobject _this, RsContext con, jint script, jint slot, float val) { LOG_API("nScriptSetVarF, con(%p), s(%p), slot(%i), val(%f)", con, (void *)script, slot, val); @@ -1266,6 +1273,7 @@ static JNINativeMethod methods[] = { {"rsnScriptInvoke", "(III)V", (void*)nScriptInvoke }, {"rsnScriptInvokeV", "(III[B)V", (void*)nScriptInvokeV }, {"rsnScriptSetVarI", "(IIII)V", (void*)nScriptSetVarI }, +{"rsnScriptSetVarJ", "(IIIJ)V", (void*)nScriptSetVarJ }, {"rsnScriptSetVarF", "(IIIF)V", (void*)nScriptSetVarF }, {"rsnScriptSetVarD", "(IIID)V", (void*)nScriptSetVarD }, {"rsnScriptSetVarV", "(III[B)V", (void*)nScriptSetVarV }, |