summaryrefslogtreecommitdiffstats
path: root/core/jni
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2013-08-30 13:49:14 -0700
committerJesse Hall <jessehall@google.com>2013-08-30 13:49:14 -0700
commit0fa257fe53bf520bdde93996a1901ce6bc3e1788 (patch)
tree5dfe05108fcc94a985be4bd613eb775ff2b7be67 /core/jni
parent81e0b1bd8325a2897a34f58a1e781e4d653f49fe (diff)
downloadframeworks_base-0fa257fe53bf520bdde93996a1901ce6bc3e1788.zip
frameworks_base-0fa257fe53bf520bdde93996a1901ce6bc3e1788.tar.gz
frameworks_base-0fa257fe53bf520bdde93996a1901ce6bc3e1788.tar.bz2
EGL10.eglCreateWindowSurface should set producerControlledByApp
Bug: 10521699 Change-Id: Ief3f01edf7dabc7996b7af1a756dfd00f0987f1a
Diffstat (limited to 'core/jni')
-rw-r--r--core/jni/com_google_android_gles_jni_EGLImpl.cpp4
1 files 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 a3ce2a5..50b3302 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<IGraphicBufferProducer> producer(SurfaceTexture_getProducer(_env, native_window));
- window = new Surface(producer);
+ window = new Surface(producer, true);
if (window == NULL)
goto not_valid_surface;