diff options
author | Jason Sams <rjsams@android.com> | 2009-11-17 17:26:46 -0800 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2009-11-17 17:26:46 -0800 |
commit | 715333b832fb448c32165c7d97d408a3fa43f7cb (patch) | |
tree | af4da1824b78ad114d993ce6f523373046e3d514 /graphics/jni | |
parent | f0166e4dd0907e487531960e36f516406d265b73 (diff) | |
download | frameworks_base-715333b832fb448c32165c7d97d408a3fa43f7cb.zip frameworks_base-715333b832fb448c32165c7d97d408a3fa43f7cb.tar.gz frameworks_base-715333b832fb448c32165c7d97d408a3fa43f7cb.tar.bz2 |
Add support for dumping RS objects to aid in debugging of white blocks bug.
Diffstat (limited to 'graphics/jni')
-rw-r--r-- | graphics/jni/android_renderscript_RenderScript.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/graphics/jni/android_renderscript_RenderScript.cpp b/graphics/jni/android_renderscript_RenderScript.cpp index d311c33..af3bc74 100644 --- a/graphics/jni/android_renderscript_RenderScript.cpp +++ b/graphics/jni/android_renderscript_RenderScript.cpp @@ -189,9 +189,16 @@ static void nContextDestroy(JNIEnv *_env, jobject _this, jint con) { LOG_API("nContextDestroy, con(%p)", (RsContext)con); - return rsContextDestroy((RsContext)con); + rsContextDestroy((RsContext)con); } +static void +nContextDump(JNIEnv *_env, jobject _this, jint bits) +{ + RsContext con = (RsContext)(_env->GetIntField(_this, gContextId)); + LOG_API("nContextDump, con(%p) bits(%i)", (RsContext)con, bits); + rsContextDump((RsContext)con, bits); +} static void nContextPause(JNIEnv *_env, jobject _this) @@ -1346,6 +1353,7 @@ static JNINativeMethod methods[] = { {"nContextSetPriority", "(I)V", (void*)nContextSetPriority }, {"nContextSetSurface", "(IILandroid/view/Surface;)V", (void*)nContextSetSurface }, {"nContextDestroy", "(I)V", (void*)nContextDestroy }, +{"nContextDump", "(I)V", (void*)nContextDump }, {"nContextPause", "()V", (void*)nContextPause }, {"nContextResume", "()V", (void*)nContextResume }, {"nAssignName", "(I[B)V", (void*)nAssignName }, |