DescriptionFix GpuChannelHost destruction and races
https://codereview.chromium.org/583043005 introduced
GpuChannelHost::DestroyChannel but it introduced a new state to GpuChannelHost
which was not captured everywhere and had races.
1- Ensure GpuChannelHost::DestroyChannel is always called on the main thread, before destruction.
2- properly handle the channel_ == NULL state.
3- Fix races (channel_ is used on any thread on windows, must be locked)
Also make sure contexts are destroyed before the channel, for sanity.
BUG=451456, 471822
Committed: https://crrev.com/765e52870520c6e60d913c307577c1d1fec3a381
Cr-Commit-Position: refs/heads/master@{#328917}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|