Merge "SurfaceControl: Crash due to invalid JNI cast" into oc-dev

This commit is contained in:
TreeHugger Robot
2017-04-06 23:35:31 +00:00
committed by Android (Google) Code Review

View File

@@ -167,7 +167,7 @@ static jobject nativeScreenshotToBuffer(JNIEnv* env, jclass clazz,
buffer->getHeight(),
buffer->getPixelFormat(),
buffer->getUsage(),
(void*)buffer.get());
(jlong)buffer.get());
}
static jobject nativeScreenshotBitmap(JNIEnv* env, jclass clazz,