Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: content/common/gpu/client/gpu_channel_host.cc

Issue 1262253004: Let IPC::SyncMessageFilter take advantage of thread-safe Send. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minus some code Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/client/gpu_channel_host.cc
diff --git a/content/common/gpu/client/gpu_channel_host.cc b/content/common/gpu/client/gpu_channel_host.cc
index 4a41418548d0983c9bc7fff0a3cf9e842c2e27e0..bf393593d29bbcbc02ead58f1b135b46bdb514e7 100644
--- a/content/common/gpu/client/gpu_channel_host.cc
+++ b/content/common/gpu/client/gpu_channel_host.cc
@@ -78,9 +78,7 @@ void GpuChannelHost::Connect(const IPC::ChannelHandle& channel_handle,
channel_handle, IPC::Channel::MODE_CLIENT, NULL, io_task_runner.get(),
true, shutdown_event, factory_->GetAttachmentBroker());
- sync_filter_ = new IPC::SyncMessageFilter(shutdown_event);
-
- channel_->AddFilter(sync_filter_.get());
+ sync_filter_ = channel_->CreateSyncMessageFilter();
channel_filter_ = new MessageFilter();
« no previous file with comments | « content/child/indexed_db/webidbcursor_impl_unittest.cc ('k') | content/renderer/gpu/queue_message_swap_promise_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698