diff options
author | Mathias Agopian <mathias@google.com> | 2013-08-06 20:16:12 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2013-08-06 20:16:12 -0700 |
commit | 24f43c9d2c9c81bfdeeec0c201703cccfba14c51 (patch) | |
tree | 664ca3215d6c2b5fd5d850490a170332659e128b | |
parent | 52a9a10b6b8c7b7a9f97777541841b94d4fd9754 (diff) | |
download | frameworks_base-24f43c9d2c9c81bfdeeec0c201703cccfba14c51.zip frameworks_base-24f43c9d2c9c81bfdeeec0c201703cccfba14c51.tar.gz frameworks_base-24f43c9d2c9c81bfdeeec0c201703cccfba14c51.tar.bz2 |
put TextureView back to async mode
it's probably not strictly needed, but it guarantees
that the app won't deadlock itself while using a
TextureView -- this could happen if it blocked
in View.onDraw() waiting for the producer
this mimics the behavior TextureView always had.
Change-Id: I453339237a48dea91a10840b8cc0f5d2d84d1520
-rw-r--r-- | core/jni/android_view_TextureView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android_view_TextureView.cpp b/core/jni/android_view_TextureView.cpp index 8dc2fc6..0f429005 100644 --- a/core/jni/android_view_TextureView.cpp +++ b/core/jni/android_view_TextureView.cpp @@ -100,7 +100,7 @@ static void android_view_TextureView_createNativeWindow(JNIEnv* env, jobject tex jobject surface) { sp<IGraphicBufferProducer> producer(SurfaceTexture_getProducer(env, surface)); - sp<ANativeWindow> window = new Surface(producer); + sp<ANativeWindow> window = new Surface(producer, true); window->incStrong((void*)android_view_TextureView_createNativeWindow); SET_INT(textureView, gTextureViewClassInfo.nativeWindow, jint(window.get())); |