summaryrefslogtreecommitdiffstats
path: root/rs/jni
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2015-03-11 11:00:00 -0700
committerJason Sams <jsams@google.com>2015-03-11 11:00:00 -0700
commita7e2509d8da69ab1c9e14b4ce6608786c572209a (patch)
tree336d0382e57696f6f77b51ab51c634ce2f618e4b /rs/jni
parent686947801e7c35eb60bf25385f46e45db66bee69 (diff)
downloadframeworks_base-a7e2509d8da69ab1c9e14b4ce6608786c572209a.zip
frameworks_base-a7e2509d8da69ab1c9e14b4ce6608786c572209a.tar.gz
frameworks_base-a7e2509d8da69ab1c9e14b4ce6608786c572209a.tar.bz2
Remove dead path code
This API was never shipped and the implementation never finished. Change-Id: I2491db216d6a7a8ea30628d791773f89da5fb4d2
Diffstat (limited to 'rs/jni')
-rw-r--r--rs/jni/android_renderscript_RenderScript.cpp15
1 files changed, 1 insertions, 14 deletions
diff --git a/rs/jni/android_renderscript_RenderScript.cpp b/rs/jni/android_renderscript_RenderScript.cpp
index f2c9d31..6d6757d 100644
--- a/rs/jni/android_renderscript_RenderScript.cpp
+++ b/rs/jni/android_renderscript_RenderScript.cpp
@@ -1315,7 +1315,7 @@ nAllocationElementRead(JNIEnv *_env, jobject _this, jlong con, jlong alloc,
jbyte *ptr = _env->GetByteArrayElements(data, nullptr);
rsAllocationElementRead((RsContext)con, (RsAllocation)alloc,
xoff, yoff, zoff,
- lod, ptr, sizeBytes, compIdx);
+ lod, ptr, sizeBytes, compIdx);
_env->ReleaseByteArrayElements(data, ptr, JNI_ABORT);
}
@@ -2184,18 +2184,6 @@ nSamplerCreate(JNIEnv *_env, jobject _this, jlong con, jint magFilter, jint minF
// ---------------------------------------------------------------------------
static jlong
-nPathCreate(JNIEnv *_env, jobject _this, jlong con, jint prim, jboolean isStatic, jlong _vtx, jlong _loop, jfloat q) {
- if (kLogApi) {
- ALOGD("nPathCreate, con(%p)", (RsContext)con);
- }
-
- jlong id = (jlong)(uintptr_t)rsPathCreate((RsContext)con, (RsPathPrimitive)prim, isStatic,
- (RsAllocation)_vtx,
- (RsAllocation)_loop, q);
- return id;
-}
-
-static jlong
nMeshCreate(JNIEnv *_env, jobject _this, jlong con, jlongArray _vtx, jlongArray _idx, jintArray _prim)
{
if (kLogApi) {
@@ -2444,7 +2432,6 @@ static JNINativeMethod methods[] = {
{"rsnSamplerCreate", "(JIIIIIF)J", (void*)nSamplerCreate },
-{"rsnPathCreate", "(JIZJJF)J", (void*)nPathCreate },
{"rsnMeshCreate", "(J[J[J[I)J", (void*)nMeshCreate },
{"rsnMeshGetVertexBufferCount", "(JJ)I", (void*)nMeshGetVertexBufferCount },