diff options
author | Stephen Hines <srhines@google.com> | 2010-09-20 17:20:30 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2010-09-20 17:20:30 -0700 |
commit | ca54ec302f5bddd1674ea1f36cd3b7c540b2fbca (patch) | |
tree | 2a41d84f4a8f751b207bf679a33c03226657aee3 /graphics/jni | |
parent | 9db8abcd1e67a782b4de2cb8609c1eee9e64ca6d (diff) | |
download | frameworks_base-ca54ec302f5bddd1674ea1f36cd3b7c540b2fbca.zip frameworks_base-ca54ec302f5bddd1674ea1f36cd3b7c540b2fbca.tar.gz frameworks_base-ca54ec302f5bddd1674ea1f36cd3b7c540b2fbca.tar.bz2 |
Add support for Float64 (double) to RenderScript.
Change-Id: Iad1c4adadf657a46aa38a3fad7813927e643e29d
Diffstat (limited to 'graphics/jni')
-rw-r--r-- | graphics/jni/android_renderscript_RenderScript.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/graphics/jni/android_renderscript_RenderScript.cpp b/graphics/jni/android_renderscript_RenderScript.cpp index f386537..ee2080e 100644 --- a/graphics/jni/android_renderscript_RenderScript.cpp +++ b/graphics/jni/android_renderscript_RenderScript.cpp @@ -791,11 +791,18 @@ nScriptSetVarI(JNIEnv *_env, jobject _this, RsContext con, jint script, jint slo static void nScriptSetVarF(JNIEnv *_env, jobject _this, RsContext con, jint script, jint slot, float val) { - LOG_API("nScriptSetVarI, con(%p), s(%p), slot(%i), val(%f)", con, (void *)script, slot, val); + LOG_API("nScriptSetVarF, con(%p), s(%p), slot(%i), val(%f)", con, (void *)script, slot, val); rsScriptSetVarF(con, (RsScript)script, slot, val); } static void +nScriptSetVarD(JNIEnv *_env, jobject _this, RsContext con, jint script, jint slot, double val) +{ + LOG_API("nScriptSetVarD, con(%p), s(%p), slot(%i), val(%lf)", con, (void *)script, slot, val); + rsScriptSetVarD(con, (RsScript)script, slot, val); +} + +static void nScriptSetVarV(JNIEnv *_env, jobject _this, RsContext con, jint script, jint slot, jbyteArray data) { LOG_API("nScriptSetVarV, con(%p), s(%p), slot(%i)", con, (void *)script, slot); @@ -1281,6 +1288,7 @@ static JNINativeMethod methods[] = { {"rsnScriptInvokeV", "(III[B)V", (void*)nScriptInvokeV }, {"rsnScriptSetVarI", "(IIII)V", (void*)nScriptSetVarI }, {"rsnScriptSetVarF", "(IIIF)V", (void*)nScriptSetVarF }, +{"rsnScriptSetVarD", "(IIID)V", (void*)nScriptSetVarD }, {"rsnScriptSetVarV", "(III[B)V", (void*)nScriptSetVarV }, {"rsnScriptCBegin", "(I)V", (void*)nScriptCBegin }, |