VCD: Start tracing in CameraHalDispatcherImpl::Start()
There is a race condition in how we added tracing in https://crrev.com/c/1158106 TraceLog is added in CameraHalDispatcherImpl constructor. Once TraceLog is enabled, it calls CameraHalDispatcherImpl::OnTraceLogEnabled. CameraHalDispatcherImpl then processes the call on its proxy thread. The issue is the proxy thread may not be started yet at this point, so CameraHalDispatcherImpl will crash when it tries to post a task onto the not-yet-started proxy thread. Bug: None Test: Build and deploy simplechrome on soraka Change-Id: If06c18da2aac25aae8ff79d061fd59b3344e9369 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2581125 Commit-Queue: Jasmine Chen <lnishan@google.com> Commit-Queue: Shik Chen <shik@chromium.org> Auto-Submit: Jasmine Chen <lnishan@google.com> Reviewed-by:Shik Chen <shik@chromium.org> Cr-Commit-Position: refs/heads/master@{#835124}
Showing
Please register or sign in to comment