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

* commit 'afe2b1fadd29149ceed639357e44e06e97c3a5ca':
  surfaceflinger: don't close fence fds after passing to queueBuffer
This commit is contained in:
Jesse Hall 2014-10-22 20:45:35 +00:00 committed by Android Git Automerger
commit 8ad8c0a775

View File

@ -3247,10 +3247,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;