summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/gpu_channel_host.cc
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-16 19:58:00 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-16 19:58:00 +0000
commit80f3d9661c68abd5b445f5c112935616fb472052 (patch)
tree92ca0aa3b959a4a1c0cab12e84bd876b1519cd9e /chrome/renderer/gpu_channel_host.cc
parenteac1cd26a7fec8261bbe60f2aed21e01368e4af6 (diff)
downloadchromium_src-80f3d9661c68abd5b445f5c112935616fb472052.zip
chromium_src-80f3d9661c68abd5b445f5c112935616fb472052.tar.gz
chromium_src-80f3d9661c68abd5b445f5c112935616fb472052.tar.bz2
GpuProcessHost and GpuChannel do not assert if they receive an IPC message that cannot be routed.
Comment added to code: The object to which the message is addressed might have been destroyed. This is expected, for example an asynchronous SwapBuffers notification to a command buffer proxy that has since been destroyed. This function fails silently in that case. TEST=try BUG=none Review URL: http://codereview.chromium.org/3362017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59702 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/gpu_channel_host.cc')
-rw-r--r--chrome/renderer/gpu_channel_host.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/renderer/gpu_channel_host.cc b/chrome/renderer/gpu_channel_host.cc
index b4e5bd1..141ae6f 100644
--- a/chrome/renderer/gpu_channel_host.cc
+++ b/chrome/renderer/gpu_channel_host.cc
@@ -38,9 +38,12 @@ const GPUInfo& GpuChannelHost::gpu_info() const {
void GpuChannelHost::OnMessageReceived(const IPC::Message& message) {
DCHECK(message.routing_id() != MSG_ROUTING_CONTROL);
- if (!router_.RouteMessage(message)) {
- NOTREACHED() << "GpuChannelHost failed to route message";
- }
+
+ // The object to which the message is addressed might have been destroyed.
+ // This is expected, for example an asynchronous SwapBuffers notification
+ // to a command buffer proxy that has since been destroyed. This function
+ // fails silently in that case.
+ router_.RouteMessage(message);
}
void GpuChannelHost::OnChannelConnected(int32 peer_pid) {