diff options
author | Jason Sams <jsams@google.com> | 2013-02-22 18:43:45 -0800 |
---|---|---|
committer | Jason Sams <jsams@google.com> | 2013-02-22 18:43:45 -0800 |
commit | add26dca07cc5a5c935bc68f57bee2c1cd96a79e (patch) | |
tree | a0d9855c7337250c4bb99be852795090699ad691 /graphics/jni | |
parent | 786525e8ea49c32b54eda5c260e125f5f2cf80e7 (diff) | |
download | frameworks_base-add26dca07cc5a5c935bc68f57bee2c1cd96a79e.zip frameworks_base-add26dca07cc5a5c935bc68f57bee2c1cd96a79e.tar.gz frameworks_base-add26dca07cc5a5c935bc68f57bee2c1cd96a79e.tar.bz2 |
add support for debug and profile contexts.
Change-Id: I759e54e365a344a93d725eb4fa70a2c4c98bf05a
Diffstat (limited to 'graphics/jni')
-rw-r--r-- | graphics/jni/android_renderscript_RenderScript.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/jni/android_renderscript_RenderScript.cpp b/graphics/jni/android_renderscript_RenderScript.cpp index 5b3758a..8757b19 100644 --- a/graphics/jni/android_renderscript_RenderScript.cpp +++ b/graphics/jni/android_renderscript_RenderScript.cpp @@ -182,10 +182,10 @@ nDeviceSetConfig(JNIEnv *_env, jobject _this, jint dev, jint p, jint value) } static jint -nContextCreate(JNIEnv *_env, jobject _this, jint dev, jint ver, jint sdkVer) +nContextCreate(JNIEnv *_env, jobject _this, jint dev, jint ver, jint sdkVer, jint ct) { LOG_API("nContextCreate"); - return (jint)rsContextCreate((RsDevice)dev, ver, sdkVer); + return (jint)rsContextCreate((RsDevice)dev, ver, sdkVer, (RsContextType)ct, false, false); } static jint @@ -1463,7 +1463,7 @@ static JNINativeMethod methods[] = { // All methods below are thread protected in java. -{"rsnContextCreate", "(III)I", (void*)nContextCreate }, +{"rsnContextCreate", "(IIII)I", (void*)nContextCreate }, {"rsnContextCreateGL", "(IIIIIIIIIIIIIFI)I", (void*)nContextCreateGL }, {"rsnContextFinish", "(I)V", (void*)nContextFinish }, {"rsnContextSetPriority", "(II)V", (void*)nContextSetPriority }, |