From 168ae92e90cafe51d7b4d62ce202a8aba093b88c Mon Sep 17 00:00:00 2001 From: "apatrick@google.com" Date: Fri, 4 Dec 2009 18:08:45 +0000 Subject: Added new IPC message class for CommandBuffer. Increased IPC message header type from 16 bits to 32 bits so it can accomodate more message classes. TEST=none BUG=none Review URL: http://codereview.chromium.org/399013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33832 0039d316-1c4b-4281-b951-d872f2087c98 --- ipc/ipc_message_macros.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ipc/ipc_message_macros.h') diff --git a/ipc/ipc_message_macros.h b/ipc/ipc_message_macros.h index ba2a10a..e46ab12 100644 --- a/ipc/ipc_message_macros.h +++ b/ipc/ipc_message_macros.h @@ -145,8 +145,8 @@ // Do label##PreStart so that automation messages keep the same id as before. #define IPC_BEGIN_MESSAGES(label) \ enum label##MsgType { \ - label##Start = label##MsgStart << 12, \ - label##PreStart = (label##MsgStart << 12) - 1, + label##Start = label##MsgStart << 16, \ + label##PreStart = (label##MsgStart << 16) - 1, #define IPC_END_MESSAGES(label) \ label##End \ @@ -387,7 +387,7 @@ void class_name::OnMessageReceived(const IPC::Message& msg) \ #ifndef IPC_LOG_TABLE_CREATED #define IPC_LOG_TABLE_CREATED -typedef void (*LogFunction)(uint16 type, +typedef void (*LogFunction)(uint32 type, std::wstring* name, const IPC::Message* msg, std::wstring* params); @@ -397,7 +397,7 @@ LogFunction g_log_function_mapping[LastMsgIndex]; #define IPC_BEGIN_MESSAGES(label) \ - void label##MsgLog(uint16 type, std::wstring* name, const IPC::Message* msg, std::wstring* params) { \ + void label##MsgLog(uint32 type, std::wstring* name, const IPC::Message* msg, std::wstring* params) { \ switch (type) { #define IPC_END_MESSAGES(label) \ -- cgit v1.1