From b215529c720106165041c56142fce85a81929d33 Mon Sep 17 00:00:00 2001 From: Chong Zhang Date: Wed, 29 Jan 2014 12:52:15 -0800 Subject: change Surface constructor arg to 64bit Bug: 12799017 Bug: 12799384 (cherry picked from commit af608e81d450b962a443a21fb1a6feadeb355fe1) Change-Id: I8d1471b16e6a6d334a3a32b789045eb171b81e03 --- core/jni/android_view_Surface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/jni/android_view_Surface.cpp b/core/jni/android_view_Surface.cpp index 3342bab53125..c2d4ec0c5b1b 100644 --- a/core/jni/android_view_Surface.cpp +++ b/core/jni/android_view_Surface.cpp @@ -113,7 +113,8 @@ jobject android_view_Surface_createFromIGraphicBufferProducer(JNIEnv* env, return NULL; } - jobject surfaceObj = env->NewObject(gSurfaceClassInfo.clazz, gSurfaceClassInfo.ctor, surface.get()); + jobject surfaceObj = env->NewObject(gSurfaceClassInfo.clazz, + gSurfaceClassInfo.ctor, (jlong)surface.get()); if (surfaceObj == NULL) { if (env->ExceptionCheck()) { ALOGE("Could not create instance of Surface from IGraphicBufferProducer."); -- cgit v1.2.3-59-g8ed1b