From 996089bbcef36e0562d694dd3d88347dc9593721 Mon Sep 17 00:00:00 2001 From: alexst Date: Wed, 7 Jan 2015 14:12:57 -0800 Subject: 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} --- content/gpu/gpu_child_thread.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'content/gpu') 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 } -- cgit v1.1