summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2015-10-14 20:26:57 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-10-14 20:26:57 +0000
commit0983618f0ad57b873163183eac6caf8dea7920c8 (patch)
tree16d4d66ba73cd933c4b5847d0a66740385e89c12
parent5bba4236a86bbf4537bc27810803b9b224b0840f (diff)
parenta518d5ad0c0c6a661471a8cd2c962612943ca667 (diff)
downloadframeworks_native-0983618f0ad57b873163183eac6caf8dea7920c8.zip
frameworks_native-0983618f0ad57b873163183eac6caf8dea7920c8.tar.gz
frameworks_native-0983618f0ad57b873163183eac6caf8dea7920c8.tar.bz2
am a518d5ad: am 312d7555: egl: Remove window disconnect before calling driver eglDestroySurface
* commit 'a518d5ad0c0c6a661471a8cd2c962612943ca667': egl: Remove window disconnect before calling driver eglDestroySurface
-rw-r--r--opengl/libs/EGL/eglApi.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/opengl/libs/EGL/eglApi.cpp b/opengl/libs/EGL/eglApi.cpp
index 8378907..cdec565 100644
--- a/opengl/libs/EGL/eglApi.cpp
+++ b/opengl/libs/EGL/eglApi.cpp
@@ -595,15 +595,6 @@ EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface)
return setError(EGL_BAD_SURFACE, EGL_FALSE);
egl_surface_t * const s = get_surface(surface);
- ANativeWindow* window = s->win.get();
- if (window) {
- int result = native_window_api_disconnect(window, NATIVE_WINDOW_API_EGL);
- if (result != OK) {
- ALOGE("eglDestroySurface: native_window_api_disconnect (win=%p) "
- "failed (%#x)",
- window, result);
- }
- }
EGLBoolean result = s->cnx->egl.eglDestroySurface(dp->disp.dpy, s->surface);
if (result == EGL_TRUE) {
_s.terminate();