зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1667932 - Fix file descriptor handling in SharedSurface_AndroidHardwareBuffer::WaitForBufferOwnership() r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D91704
This commit is contained in:
Родитель
879df3cec2
Коммит
0666f42a43
|
@ -152,6 +152,8 @@ void SharedSurface_AndroidHardwareBuffer::WaitForBufferOwnership() {
|
|||
gfxCriticalNote << "Failed to create EGLSync from fd";
|
||||
return;
|
||||
}
|
||||
// Release fd here, since it is owned by EGLSync
|
||||
Unused << rawFD.release();
|
||||
|
||||
egl->fClientWaitSync(sync, 0, LOCAL_EGL_FOREVER);
|
||||
egl->fDestroySync(sync);
|
||||
|
|
Загрузка…
Ссылка в новой задаче