summaryrefslogtreecommitdiffstats
path: root/rs/jni
diff options
context:
space:
mode:
authorMiao Wang <miaowang@google.com>2015-03-05 16:27:15 -0800
committerMiao Wang <miaowang@google.com>2015-03-05 16:27:15 -0800
commit2cd0c340fc242e615a502f37512f08da78a12bf6 (patch)
tree88241fa8338c6b3873c2569d4f079ba2a8b477c0 /rs/jni
parent288e6f67181ce74ec4b97b61def1b9510b1221d0 (diff)
downloadframeworks_base-2cd0c340fc242e615a502f37512f08da78a12bf6.zip
frameworks_base-2cd0c340fc242e615a502f37512f08da78a12bf6.tar.gz
frameworks_base-2cd0c340fc242e615a502f37512f08da78a12bf6.tar.bz2
[RenderScript] Add missing variable
Change-Id: I148bab3a8c3fb360d345549401d0ed579a37e971
Diffstat (limited to 'rs/jni')
-rw-r--r--rs/jni/android_renderscript_RenderScript.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/rs/jni/android_renderscript_RenderScript.cpp b/rs/jni/android_renderscript_RenderScript.cpp
index 0bad827..fa7b2bc 100644
--- a/rs/jni/android_renderscript_RenderScript.cpp
+++ b/rs/jni/android_renderscript_RenderScript.cpp
@@ -1311,6 +1311,8 @@ nAllocationElementRead(JNIEnv *_env, jobject _this, jlong con, jlong _alloc,
ALOGD("nAllocationElementRead, con(%p), alloc(%p), xoff(%i), yoff(%i), zoff(%i), comp(%i), "
"sizeBytes(%i)", (RsContext)con, alloc, xoff, yoff, zoff, compIdx, sizeBytes);
}
+ int mSize = sizeBytes;
+ int count = 0;
PER_ARRAY_TYPE(0, rsAllocationElementRead, false, (RsContext)con, alloc,
xoff, yoff, zoff, lod, ptr, sizeBytes, compIdx);
}