summaryrefslogtreecommitdiffstats
path: root/graphics/jni
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-08-25 14:31:48 -0700
committerJason Sams <rjsams@android.com>2010-08-25 14:41:20 -0700
commit1d45c47975ab2a8cef6db5a8976276de31e1e8d0 (patch)
tree1db2203004e52f51e4f0296adf4d4c332ea3dd56 /graphics/jni
parent7462fc738fdaa5095d42f6176940c7111a2a54ac (diff)
downloadframeworks_base-1d45c47975ab2a8cef6db5a8976276de31e1e8d0.zip
frameworks_base-1d45c47975ab2a8cef6db5a8976276de31e1e8d0.tar.gz
frameworks_base-1d45c47975ab2a8cef6db5a8976276de31e1e8d0.tar.bz2
Add matrix component types.
Fix potental overflow in script -> java messages. Change-Id: Ie6fd9dc376be4043fc938a1517106936937689c8
Diffstat (limited to 'graphics/jni')
-rw-r--r--graphics/jni/android_renderscript_RenderScript.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/graphics/jni/android_renderscript_RenderScript.cpp b/graphics/jni/android_renderscript_RenderScript.cpp
index b2e8dd9..81f08e9 100644
--- a/graphics/jni/android_renderscript_RenderScript.cpp
+++ b/graphics/jni/android_renderscript_RenderScript.cpp
@@ -228,7 +228,8 @@ nContextGetMessage(JNIEnv *_env, jobject _this, RsContext con, jintArray data, j
size_t receiveLen;
int id = rsContextGetMessage(con, ptr, &receiveLen, len * 4, wait);
if (!id && receiveLen) {
- LOGE("message receive buffer too small. %i", receiveLen);
+ LOGV("message receive buffer too small. %i", receiveLen);
+ *ptr = (jint)receiveLen;
}
_env->ReleaseIntArrayElements(data, ptr, 0);
return id;