cc: Threaded GPU - fix thread binding.
commit4ee2c6b9e8337563158c183e9775765d5613e2d9
authorvmiura <vmiura@chromium.org>
Mon, 16 Feb 2015 19:10:45 +0000 (16 11:10 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 16 Feb 2015 19:11:24 +0000 (16 19:11 +0000)
tree12523a43fbe1dc69cec509423f13e62884e0ef32
parenta14137b0e7bf0c5a2af3083d0faeb6a68bac8795
cc: Threaded GPU - fix thread binding.

In theaded GPU raster mode, the compositor & worker threads can
take control of the worker_context_provider while holding the
context lock.

Currently if GpuTTWP binds to the thread and the compositor
needs to take ownership under lock, then the context's thread
checker may DCHECK().  Similarly in the reverse.

This change fixes binding of the context's thread checker,
allowing binding to the worker thread under lock, and detaching
before releasing the lock, so the compositor may bind again.

TBR=vmpstr@chromium.org
TBR=jbauman@chromium.org
BUG=454500

Review URL: https://codereview.chromium.org/925183002

Cr-Commit-Position: refs/heads/master@{#316498}
cc/resources/gpu_tile_task_worker_pool.cc