summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHan Wang <416810799@qq.com>2019-07-14 05:30:27 (GMT)
committerLuca Stefani <luca.stefani.ge1@gmail.com>2019-07-24 10:39:51 (GMT)
commit22c9c67a32df0fa20dda27599151d05a6d9c2582 (patch)
tree571fb4372dcc7cf06ccc18357fa73ac5dad70adc
parent4a63515b91f8f8dcb4dfc5841741b4684ccc7a2a (diff)
downloadframeworks_base-22c9c67a32df0fa20dda27599151d05a6d9c2582.zip
frameworks_base-22c9c67a32df0fa20dda27599151d05a6d9c2582.tar.gz
frameworks_base-22c9c67a32df0fa20dda27599151d05a6d9c2582.tar.bz2
jni: Fix improper call to createFromExisting()
* We need to pass "false" as another parameter to fix a jboolean check crash on eng builds. F system_server: runtime.cc:566] JNI DETECTED ERROR IN APPLICATION: unexpected jboolean value: 319040960 F system_server: runtime.cc:566] in call to CallStaticObjectMethodV F system_server: runtime.cc:566] from android.graphics.GraphicBuffer android.view.SurfaceControl.nativeCaptureLayers(android.os.IBinder, android.graphics.Rect, float) Change-Id: I7a88225d3ebeb5d74b209cd1f962f1da3c1e8290
-rw-r--r--core/jni/android_view_SurfaceControl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/jni/android_view_SurfaceControl.cpp b/core/jni/android_view_SurfaceControl.cpp
index 614a8ff..70e8248 100644
--- a/core/jni/android_view_SurfaceControl.cpp
+++ b/core/jni/android_view_SurfaceControl.cpp
@@ -308,7 +308,8 @@ static jobject nativeCaptureLayers(JNIEnv* env, jclass clazz, jobject layerHandl
buffer->getHeight(),
buffer->getPixelFormat(),
(jint)buffer->getUsage(),
- (jlong)buffer.get());
+ (jlong)buffer.get(),
+ false);
}
static void nativeApplyTransaction(JNIEnv* env, jclass clazz, jlong transactionObj, jboolean sync) {