Fix shutdown order for ArCoreGl
It's illegal to destroy mojo callbacks that haven't been run while their message pipe is still open. Since ArCoreGlThread's destructor shuts down the task runner, this was causing DCHECK failures if the task runner owned a closure with a pending GetFrameData mojo callback. To fix this, have ArCoreGl retain ownership of the closure containing a mojo callback, and call it through a helper method. Bug: 1065572 Change-Id: Ice2340906da470ff2b5b69554e9e7755dd040b3e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2127420 Commit-Queue: Klaus Weidner <klausw@chromium.org> Reviewed-by:Alexander Cooper <alcooper@chromium.org> Reviewed-by:
Piotr Bialecki <bialpio@chromium.org> Cr-Commit-Position: refs/heads/master@{#754655}
Showing
Please register or sign in to comment