summaryrefslogtreecommitdiffstats
path: root/content/gpu/gpu_child_thread.cc
diff options
context:
space:
mode:
authoralexst <alexst@chromium.org>2015-01-07 14:12:57 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-07 22:13:49 +0000
commit996089bbcef36e0562d694dd3d88347dc9593721 (patch)
tree6e722b65d34db85e0c4e6f87a51a6d5db849e5c7 /content/gpu/gpu_child_thread.cc
parentfc9d656e519581df1eff7adcb11c7560b5b828d0 (diff)
downloadchromium_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.cc10
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
}