From 24f43c9d2c9c81bfdeeec0c201703cccfba14c51 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Tue, 6 Aug 2013 20:16:12 -0700 Subject: 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 --- core/jni/android_view_TextureView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/jni/android_view_TextureView.cpp b/core/jni/android_view_TextureView.cpp index 8dc2fc61fe7b..0f4290059b89 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 producer(SurfaceTexture_getProducer(env, surface)); - sp window = new Surface(producer); + sp window = new Surface(producer, true); window->incStrong((void*)android_view_TextureView_createNativeWindow); SET_INT(textureView, gTextureViewClassInfo.nativeWindow, jint(window.get())); -- cgit v1.2.3-59-g8ed1b