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:
commit
8ad8c0a775
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user