diff options
author | Alex Sakhartchouk <alexst@google.com> | 2011-03-16 19:28:25 -0700 |
---|---|---|
committer | Alex Sakhartchouk <alexst@google.com> | 2011-03-16 19:28:25 -0700 |
commit | 2c74ad9aae29cc64fece926f353825a7925792c2 (patch) | |
tree | d06f79b21c098e448d1370f4ec80309f232a3a28 /graphics/jni | |
parent | c2b91a6113c30d3b994ef081fbd5b941200d55a4 (diff) | |
download | frameworks_base-2c74ad9aae29cc64fece926f353825a7925792c2.zip frameworks_base-2c74ad9aae29cc64fece926f353825a7925792c2.tar.gz frameworks_base-2c74ad9aae29cc64fece926f353825a7925792c2.tar.bz2 |
Fix for bug 3434228
Change-Id: I57973faf782b487e7913a096f0ab6012dc1c9415
Diffstat (limited to 'graphics/jni')
-rw-r--r-- | graphics/jni/android_renderscript_RenderScript.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/graphics/jni/android_renderscript_RenderScript.cpp b/graphics/jni/android_renderscript_RenderScript.cpp index f86343a..2afd74c 100644 --- a/graphics/jni/android_renderscript_RenderScript.cpp +++ b/graphics/jni/android_renderscript_RenderScript.cpp @@ -164,7 +164,8 @@ nContextCreateGL(JNIEnv *_env, jobject _this, jint dev, jint ver, int alphaMin, int alphaPref, int depthMin, int depthPref, int stencilMin, int stencilPref, - int samplesMin, int samplesPref, float samplesQ) + int samplesMin, int samplesPref, float samplesQ, + int dpi) { RsSurfaceConfig sc; sc.alphaMin = alphaMin; @@ -178,7 +179,7 @@ nContextCreateGL(JNIEnv *_env, jobject _this, jint dev, jint ver, sc.samplesQ = samplesQ; LOG_API("nContextCreateGL"); - return (jint)rsContextCreateGL((RsDevice)dev, ver, sc); + return (jint)rsContextCreateGL((RsDevice)dev, ver, sc, dpi); } static void @@ -1213,7 +1214,7 @@ static JNINativeMethod methods[] = { // All methods below are thread protected in java. {"rsnContextCreate", "(II)I", (void*)nContextCreate }, -{"rsnContextCreateGL", "(IIIIIIIIIIIIF)I", (void*)nContextCreateGL }, +{"rsnContextCreateGL", "(IIIIIIIIIIIIFI)I", (void*)nContextCreateGL }, {"rsnContextFinish", "(I)V", (void*)nContextFinish }, {"rsnContextSetPriority", "(II)V", (void*)nContextSetPriority }, {"rsnContextSetSurface", "(IIILandroid/view/Surface;)V", (void*)nContextSetSurface }, |