OSDN Git Service

Fix file descriptor leak of layer buffer acquire fences
authorlambdadroid <lambdadroid@gmail.com>
Fri, 11 Jan 2019 16:26:14 +0000 (17:26 +0100)
committerlambdadroid <lambdadroid@gmail.com>
Fri, 11 Jan 2019 16:26:14 +0000 (17:26 +0100)
commitb133d7b3579814d259fdb7136882ad92b73a169c
treece550314415b9f0ec30282979f3c97cf334ed7d5
parent987deaba8035bc0107d0ed78a4db84334f3461e8
Fix file descriptor leak of layer buffer acquire fences

Even if the layer buffers are not used at the moment (because we
always fallback to client composition), the acquire fences still
need to be closed to avoid leaking file descriptors.

During client composition, SurfaceFlinger will wait for the
layer buffers if necessary.
DrmComposer.cpp