diff options
Diffstat (limited to 'camera')
-rw-r--r-- | camera/device/3.2/default/CameraDeviceSession.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/camera/device/3.2/default/CameraDeviceSession.cpp b/camera/device/3.2/default/CameraDeviceSession.cpp index de61d83164..201a3b41c1 100644 --- a/camera/device/3.2/default/CameraDeviceSession.cpp +++ b/camera/device/3.2/default/CameraDeviceSession.cpp @@ -97,6 +97,9 @@ public: //TODO(b/34110242): make this hidl transport agnostic #ifdef BINDERIZED fd = dup(handle->data[0]); + // TODO(b/34169301) + // Camera service expect FD be closed by HAL process (in passthrough mode) + // close(handle->data[0]); #else fd = handle->data[0]; #endif @@ -695,14 +698,16 @@ void CameraDeviceSession::sProcessCaptureResult( if (hasInputBuf) { int streamId = static_cast<Camera3Stream*>(hal_result->input_buffer->stream)->mId; auto key = std::make_pair(streamId, frameNumber); - sHandleImporter.closeFence(d->mInflightBuffers[key].acquire_fence); + // TODO (b/34169301): currently HAL closed the fence + //sHandleImporter.closeFence(d->mInflightBuffers[key].acquire_fence); d->mInflightBuffers.erase(key); } for (size_t i = 0; i < numOutputBufs; i++) { int streamId = static_cast<Camera3Stream*>(hal_result->output_buffers[i].stream)->mId; auto key = std::make_pair(streamId, frameNumber); - sHandleImporter.closeFence(d->mInflightBuffers[key].acquire_fence); + // TODO (b/34169301): currently HAL closed the fence + //sHandleImporter.closeFence(d->mInflightBuffers[key].acquire_fence); d->mInflightBuffers.erase(key); } |