From 0fa257fe53bf520bdde93996a1901ce6bc3e1788 Mon Sep 17 00:00:00 2001 From: Jesse Hall Date: Fri, 30 Aug 2013 13:49:14 -0700 Subject: [PATCH] EGL10.eglCreateWindowSurface should set producerControlledByApp Bug: 10521699 Change-Id: Ief3f01edf7dabc7996b7af1a756dfd00f0987f1a --- core/jni/com_google_android_gles_jni_EGLImpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/jni/com_google_android_gles_jni_EGLImpl.cpp b/core/jni/com_google_android_gles_jni_EGLImpl.cpp index a3ce2a5fceb6a..50b3302940b2e 100644 --- a/core/jni/com_google_android_gles_jni_EGLImpl.cpp +++ b/core/jni/com_google_android_gles_jni_EGLImpl.cpp @@ -351,9 +351,9 @@ not_valid_surface: "Make sure the SurfaceTexture is valid"); return 0; } - + sp producer(SurfaceTexture_getProducer(_env, native_window)); - window = new Surface(producer); + window = new Surface(producer, true); if (window == NULL) goto not_valid_surface;