diff options
author | Jamie Gennis <jgennis@google.com> | 2012-09-10 14:49:42 -0700 |
---|---|---|
committer | Jamie Gennis <jgennis@google.com> | 2012-09-10 14:49:42 -0700 |
commit | 98ff0597bd9e57ba133d54f8f09841f96955cba1 (patch) | |
tree | 77baaa375ae8ced168d825bf5e8b2afd585f856a /libs/gui/SurfaceTexture.cpp | |
parent | 61e04b92bdeafc6fca89052d14dab1bd0c384a71 (diff) | |
download | frameworks_native-98ff0597bd9e57ba133d54f8f09841f96955cba1.zip frameworks_native-98ff0597bd9e57ba133d54f8f09841f96955cba1.tar.gz frameworks_native-98ff0597bd9e57ba133d54f8f09841f96955cba1.tar.bz2 |
SurfaceTexture: eglDestroySync after duping its fd
This change adds a call to eglDestroySync after we've dup'd the fd for the
Android fence that the EGLSyncKHR object wraps.
Change-Id: I4fa6ece863260793630d70bb9a69d6284d05d99e
Diffstat (limited to 'libs/gui/SurfaceTexture.cpp')
-rw-r--r-- | libs/gui/SurfaceTexture.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/gui/SurfaceTexture.cpp b/libs/gui/SurfaceTexture.cpp index e21b65d..36a2af7 100644 --- a/libs/gui/SurfaceTexture.cpp +++ b/libs/gui/SurfaceTexture.cpp @@ -478,6 +478,7 @@ status_t SurfaceTexture::syncForReleaseLocked(EGLDisplay dpy) { } glFlush(); int fenceFd = eglDupNativeFenceFDANDROID(dpy, sync); + eglDestroySyncKHR(dpy, sync); if (fenceFd == EGL_NO_NATIVE_FENCE_FD_ANDROID) { ST_LOGE("syncForReleaseLocked: error dup'ing native fence " "fd: %#x", eglGetError()); |