Fix GpuChannelHost destruction races.
commit33fee2e5042b6e1ca34298f993b3e59b5f0817a7
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 12 Jan 2013 17:16:24 +0000 (12 17:16 +0000)
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 12 Jan 2013 17:16:24 +0000 (12 17:16 +0000)
tree3242e40b666f2ddc0e6a7c0b453ecf2b079dc39b
parent8572c4870436356bbb3541383f3af797890a4aee
Fix GpuChannelHost destruction races.

GpuChannelHost::MessageFilter can outlive GpuChannelHost, so make sure it
doesn't use a raw pointer to it.
Also ensure the BrowserGpuChannelHostFactory outlives the IO thread.

BUG=168282

Review URL: https://chromiumcodereview.appspot.com/11886005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176557 0039d316-1c4b-4281-b951-d872f2087c98
chrome/test/gpu/gpu_feature_browsertest.cc
content/browser/browser_main_loop.cc
content/common/gpu/client/gpu_channel_host.cc
content/common/gpu/client/gpu_channel_host.h