EGL10.eglCreateWindowSurface should set producerControlledByApp

Bug: 10521699
Change-Id: Ief3f01edf7dabc7996b7af1a756dfd00f0987f1a
This commit is contained in:
Jesse Hall
2013-08-30 13:49:14 -07:00
parent 81e0b1bd83
commit 0fa257fe53

View File

@@ -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;