diff options
author | alexst <alexst@chromium.org> | 2015-01-07 14:12:57 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-07 22:13:49 +0000 |
commit | 996089bbcef36e0562d694dd3d88347dc9593721 (patch) | |
tree | 6e722b65d34db85e0c4e6f87a51a6d5db849e5c7 /content/gpu/gpu_child_thread.cc | |
parent | fc9d656e519581df1eff7adcb11c7560b5b828d0 (diff) | |
download | chromium_src-996089bbcef36e0562d694dd3d88347dc9593721.zip chromium_src-996089bbcef36e0562d694dd3d88347dc9593721.tar.gz chromium_src-996089bbcef36e0562d694dd3d88347dc9593721.tar.bz2 |
Allow ozone platforms to handle some messages on the IO thread.
BUG=446184
Review URL: https://codereview.chromium.org/838653003
Cr-Commit-Position: refs/heads/master@{#310386}
Diffstat (limited to 'content/gpu/gpu_child_thread.cc')
-rw-r--r-- | content/gpu/gpu_child_thread.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc index 822a6da..86dac86 100644 --- a/content/gpu/gpu_child_thread.cc +++ b/content/gpu/gpu_child_thread.cc @@ -170,9 +170,13 @@ void GpuChildThread::OnInitialize() { channel())); #if defined(USE_OZONE) - ui::OzonePlatform::GetInstance() - ->GetGpuPlatformSupport() - ->OnChannelEstablished(this); + ui::GpuPlatformSupport* gpu_platform_support = + ui::OzonePlatform::GetInstance()->GetGpuPlatformSupport(); + + gpu_platform_support->OnChannelEstablished(this); + IPC::MessageFilter* message_filter = gpu_platform_support->GetMessageFilter(); + if (message_filter) + channel()->AddFilter(message_filter); #endif } |