diff options
author | Jason Sams <rjsams@android.com> | 2011-10-31 13:23:43 -0700 |
---|---|---|
committer | Jason Sams <jsams@google.com> | 2011-11-10 15:19:16 -0800 |
commit | f15ed0124ea7f7f87e4188a1dd15cc4917a62ee9 (patch) | |
tree | 3331398ede5e59c2c74905eb82cbe2b59c92b3c9 /graphics/jni | |
parent | 137266978bc08cbd147ad46c23aa26a7fe64f0f7 (diff) | |
download | frameworks_base-f15ed0124ea7f7f87e4188a1dd15cc4917a62ee9.zip frameworks_base-f15ed0124ea7f7f87e4188a1dd15cc4917a62ee9.tar.gz frameworks_base-f15ed0124ea7f7f87e4188a1dd15cc4917a62ee9.tar.bz2 |
Path rendering
Change-Id: I5379a676c9ec6a9b25f21bc1e050053f27e411dd
Diffstat (limited to 'graphics/jni')
-rw-r--r-- | graphics/jni/android_renderscript_RenderScript.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/graphics/jni/android_renderscript_RenderScript.cpp b/graphics/jni/android_renderscript_RenderScript.cpp index c4ef993..7b1f67d 100644 --- a/graphics/jni/android_renderscript_RenderScript.cpp +++ b/graphics/jni/android_renderscript_RenderScript.cpp @@ -1122,6 +1122,17 @@ nSamplerCreate(JNIEnv *_env, jobject _this, RsContext con, jint magFilter, jint // --------------------------------------------------------------------------- +//native int rsnPathCreate(int con, int prim, boolean isStatic, int vtx, int loop, float q); +static jint +nPathCreate(JNIEnv *_env, jobject _this, RsContext con, jint prim, jboolean isStatic, jint _vtx, jint _loop, jfloat q) { + LOG_API("nPathCreate, con(%p)", con); + + int id = (int)rsPathCreate(con, (RsPathPrimitive)prim, isStatic, + (RsAllocation)_vtx, + (RsAllocation)_loop, q); + return id; +} + static jint nMeshCreate(JNIEnv *_env, jobject _this, RsContext con, jintArray _vtx, jintArray _idx, jintArray _prim) { @@ -1310,6 +1321,7 @@ static JNINativeMethod methods[] = { {"rsnSamplerCreate", "(IIIIIIF)I", (void*)nSamplerCreate }, +{"rsnPathCreate", "(IIZIIF)I", (void*)nPathCreate }, {"rsnMeshCreate", "(I[I[I[I)I", (void*)nMeshCreate }, {"rsnMeshGetVertexBufferCount", "(II)I", (void*)nMeshGetVertexBufferCount }, |