diff options
| author | Jason Sams <rjsams@android.com> | 2009-11-17 17:35:44 -0800 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2009-11-17 17:35:44 -0800 |
| commit | f56f317fb941c354c3a10e9fbf36d194656fa7d4 (patch) | |
| tree | db7488f607711dd186da07caff392c14742ac6d8 /graphics/jni/android_renderscript_RenderScript.cpp | |
| parent | 4fea2919abeba149376fed98a14e3ffc8464eadf (diff) | |
| parent | fa0394c9f89f13b53c6db2470253825b88cafb64 (diff) | |
| download | frameworks_base-f56f317fb941c354c3a10e9fbf36d194656fa7d4.zip frameworks_base-f56f317fb941c354c3a10e9fbf36d194656fa7d4.tar.gz frameworks_base-f56f317fb941c354c3a10e9fbf36d194656fa7d4.tar.bz2 | |
am fa0394c9: Merge change I715333b8 into eclair
Merge commit 'fa0394c9f89f13b53c6db2470253825b88cafb64' into eclair-mr2
* commit 'fa0394c9f89f13b53c6db2470253825b88cafb64':
Add support for dumping RS objects to aid in debugging of white blocks bug.
Diffstat (limited to 'graphics/jni/android_renderscript_RenderScript.cpp')
| -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 }, |
