* commit '8ad8c0a775a1d4592479731973238b82480f76b2': surfaceflinger: don't close fence fds after passing to queueBuffer
This commit is contained in:
commit
11f2e08a66
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user