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

Unified Diff: content/common/gpu/gpu_channel.cc

Issue 11362171: GPUChannel pools mailbox names. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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/gpu_channel.cc
===================================================================
--- content/common/gpu/gpu_channel.cc (revision 166793)
+++ content/common/gpu/gpu_channel.cc (working copy)
@@ -172,6 +172,8 @@
IPC_BEGIN_MESSAGE_MAP(MailboxMessageFilter, message)
IPC_MESSAGE_HANDLER(GpuChannelMsg_GenerateMailboxNames,
OnGenerateMailboxNames)
+ IPC_MESSAGE_HANDLER(GpuChannelMsg_GenerateMailboxNamesAsync,
+ OnGenerateMailboxNamesAsync)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -206,6 +208,12 @@
}
}
+ void OnGenerateMailboxNamesAsync(unsigned num) {
+ std::vector<std::string> names;
+ OnGenerateMailboxNames(num, &names);
+ Send(new GpuChannelMsg_GenerateMailboxNamesReply(names));
+ }
+
IPC::Channel* channel_;
crypto::HMAC hmac_;
};

Powered by Google App Engine
This is Rietveld 408576698