OSDN Git Service

change Surface constructor arg to 64bit
authorChong Zhang <chz@google.com>
Wed, 29 Jan 2014 20:52:15 +0000 (12:52 -0800)
committerChong Zhang <chz@google.com>
Wed, 29 Jan 2014 21:07:43 +0000 (13:07 -0800)
Bug: 12799017
Bug: 12799384
Change-Id: Ic16b4fa5394df38cee0378b6e00d1808b9c8cb94

core/jni/android_view_Surface.cpp

index 19ee8a6..ab6c1e0 100644 (file)
@@ -114,7 +114,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.");