am 11f2e08a: am 8ad8c0a7: am afe2b1fa: surfaceflinger: don\'t close fence fds after passing to queueBuffer

* commit '11f2e08a66f2463cbfd9cbef5c34da7ddfe2613a':
  surfaceflinger: don't close fence fds after passing to queueBuffer
This commit is contained in:
Jesse Hall 2014-10-22 22:40:43 +00:00 committed by Android Git Automerger
commit 2d970420c5
1 changed files with 1 additions and 3 deletions

View File

@ -3251,10 +3251,8 @@ status_t SurfaceFlinger::captureScreenImplLocked(
} else {
result = BAD_VALUE;
}
// queueBuffer takes ownership of syncFd
window->queueBuffer(window, buffer, syncFd);
if (syncFd != -1) {
close(syncFd);
}
}
} else {
result = BAD_VALUE;