diff options
author | Mathias Agopian <mathias@google.com> | 2013-07-16 22:54:56 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2013-07-16 23:14:24 -0700 |
commit | e32632682ca9207bd247ca27012cf670b5c23f54 (patch) | |
tree | 0026abe147d61ef6d42d476606ea5712f0f35cd4 /core/jni/android_view_Surface.cpp | |
parent | 5ab422bfa34f0fd64b6bef25287e7250f80de4ba (diff) | |
download | frameworks_base-e32632682ca9207bd247ca27012cf670b5c23f54.zip frameworks_base-e32632682ca9207bd247ca27012cf670b5c23f54.tar.gz frameworks_base-e32632682ca9207bd247ca27012cf670b5c23f54.tar.bz2 |
update to new Consumer APIs
Change-Id: I8649f3add40e0aeeeb0396b98e2cb93312e8e990
Diffstat (limited to 'core/jni/android_view_Surface.cpp')
-rw-r--r-- | core/jni/android_view_Surface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/jni/android_view_Surface.cpp b/core/jni/android_view_Surface.cpp index 842a7f7..bf6753d 100644 --- a/core/jni/android_view_Surface.cpp +++ b/core/jni/android_view_Surface.cpp @@ -107,7 +107,7 @@ jobject android_view_Surface_createFromIGraphicBufferProducer(JNIEnv* env, return NULL; } - sp<Surface> surface(new Surface(bufferProducer)); + sp<Surface> surface(new Surface(bufferProducer, true)); if (surface == NULL) { return NULL; } @@ -143,7 +143,7 @@ static jint nativeCreateFromSurfaceTexture(JNIEnv* env, jclass clazz, } sp<IGraphicBufferProducer> bq = st->getBufferQueue(); - sp<Surface> surface(new Surface(bq)); + sp<Surface> surface(new Surface(bq, true)); if (surface == NULL) { jniThrowException(env, OutOfResourcesException, NULL); return 0; @@ -319,7 +319,7 @@ static jint nativeReadFromParcel(JNIEnv* env, jclass clazz, sp<IGraphicBufferProducer> gbp(interface_cast<IGraphicBufferProducer>(binder)); if (gbp != NULL) { // we have a new IGraphicBufferProducer, create a new Surface for it - sur = new Surface(gbp); + sur = new Surface(gbp, true); // and keep a reference before passing to java sur->incStrong(&sRefBaseOwner); } |