OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b033dc
)
change Surface constructor arg to 64bit
author
Chong Zhang
<chz@google.com>
Wed, 29 Jan 2014 20:52:15 +0000
(12:52 -0800)
committer
Chong 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
patch
|
blob
|
history
diff --git
a/core/jni/android_view_Surface.cpp
b/core/jni/android_view_Surface.cpp
index
19ee8a6
..
ab6c1e0
100644
(file)
--- a/
core/jni/android_view_Surface.cpp
+++ b/
core/jni/android_view_Surface.cpp
@@
-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.");