Index: chrome/browser/gpu_process_host_ui_shim.cc |
=================================================================== |
--- chrome/browser/gpu_process_host_ui_shim.cc (revision 70108) |
+++ chrome/browser/gpu_process_host_ui_shim.cc (working copy) |
@@ -63,13 +63,13 @@ |
router_.RemoveRoute(routing_id); |
} |
-void GpuProcessHostUIShim::OnMessageReceived(const IPC::Message& message) { |
+bool GpuProcessHostUIShim::OnMessageReceived(const IPC::Message& message) { |
DCHECK(CalledOnValidThread()); |
if (message.routing_id() == MSG_ROUTING_CONTROL) |
- OnControlMessageReceived(message); |
- else |
- router_.RouteMessage(message); |
+ return OnControlMessageReceived(message); |
+ |
+ return router_.RouteMessage(message); |
} |
void GpuProcessHostUIShim::CollectGraphicsInfoAsynchronously() { |
@@ -119,7 +119,8 @@ |
} |
host->ScheduleComposite(); |
} |
-void GpuProcessHostUIShim::OnControlMessageReceived( |
+ |
+bool GpuProcessHostUIShim::OnControlMessageReceived( |
const IPC::Message& message) { |
DCHECK(CalledOnValidThread()); |
@@ -127,9 +128,10 @@ |
IPC_MESSAGE_HANDLER(GpuHostMsg_GraphicsInfoCollected, |
OnGraphicsInfoCollected) |
#if defined(OS_WIN) |
- IPC_MESSAGE_HANDLER(GpuHostMsg_ScheduleComposite, |
- OnScheduleComposite); |
+ IPC_MESSAGE_HANDLER(GpuHostMsg_ScheduleComposite, OnScheduleComposite); |
#endif |
IPC_MESSAGE_UNHANDLED_ERROR() |
IPC_END_MESSAGE_MAP() |
+ |
+ return true; |
} |