change Surface constructor arg to 64bit
Bug: 12799017
Bug: 12799384
(cherry picked from commit af608e81d4)
Change-Id: I8d1471b16e6a6d334a3a32b789045eb171b81e03
This commit is contained in:
committed by
Narayan Kamath
parent
c65e0c95c8
commit
b215529c72
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user