commit | cd2a7b5cf2df1b844fd3894d2d0d5410406fe3ab | [log] [tgz] |
---|---|---|
author | fsamuel <[email protected]> | Mon Mar 06 18:24:14 2017 |
committer | Commit bot <[email protected]> | Mon Mar 06 18:24:14 2017 |
tree | 79bc37e47a0aea572fb11dddddaefe14b9e0cfab | |
parent | 399f2e5e66b0ab059852ac7f1e82f334640c3b38 [diff] |
GpuMain: Fix thread_runner() access DCHECK fail Accessing base::Thread::task_runner() on an arbitrary thread is unsafe. This causes a DCHECK to fail on some mus_ws_unittests. This CL saves the task runner for the gpu thread and the compositor thread in member variables to ensure safe access to the task runners. BUG=none Review-Url: https://codereview.chromium.org/2736693003 Cr-Commit-Position: refs/heads/master@{#454891}