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

* commit '8ad8c0a775a1d4592479731973238b82480f76b2':
  surfaceflinger: don't close fence fds after passing to queueBuffer
This commit is contained in:
Jesse Hall 2014-10-22 21:27:11 +00:00 committed by Android Git Automerger
commit 11f2e08a66

View File

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