Add support for mixed 32/64 APKs using RenderScript.

Change-Id: I8901a1547d180c9dcef320f86d07a5b82551fb5c
This commit is contained in:
Tim Murray
2014-05-16 11:47:26 -07:00
parent b75b3aaac4
commit f0c62b2676
4 changed files with 58 additions and 3 deletions

View File

@@ -1576,6 +1576,12 @@ nMeshGetIndices(JNIEnv *_env, jobject _this, jlong con, jlong mesh, jlongArray _
free(prims);
}
static jint
nSystemGetPointerSize(JNIEnv *_env, jobject _this) {
return (jint)sizeof(void*);
}
// ---------------------------------------------------------------------------
@@ -1711,6 +1717,7 @@ static JNINativeMethod methods[] = {
{"rsnMeshGetVertices", "(JJ[JI)V", (void*)nMeshGetVertices },
{"rsnMeshGetIndices", "(JJ[J[II)V", (void*)nMeshGetIndices },
{"rsnSystemGetPointerSize", "()I", (void*)nSystemGetPointerSize },
};
static int registerFuncs(JNIEnv *_env)