| Index: chrome/renderer/gpu_channel_host.cc
|
| ===================================================================
|
| --- chrome/renderer/gpu_channel_host.cc (revision 67940)
|
| +++ chrome/renderer/gpu_channel_host.cc (working copy)
|
| @@ -97,15 +97,16 @@
|
|
|
| GPUCreateCommandBufferConfig init_params(allowed_extensions, attribs);
|
| int32 route_id;
|
| - if (!Send(new GpuChannelMsg_CreateViewCommandBuffer(
|
| - view,
|
| - render_view_id,
|
| - init_params,
|
| - &route_id)) &&
|
| - route_id != MSG_ROUTING_NONE) {
|
| + if (!Send(new GpuChannelMsg_CreateViewCommandBuffer(view,
|
| + render_view_id,
|
| + init_params,
|
| + &route_id))) {
|
| return NULL;
|
| }
|
|
|
| + if (route_id == MSG_ROUTING_NONE)
|
| + return NULL;
|
| +
|
| CommandBufferProxy* command_buffer = new CommandBufferProxy(this, route_id);
|
| router_.AddRoute(route_id, command_buffer);
|
| proxies_[route_id] = command_buffer;
|
| @@ -133,11 +134,13 @@
|
| size,
|
| init_params,
|
| parent_texture_id,
|
| - &route_id)) &&
|
| - route_id != MSG_ROUTING_NONE) {
|
| + &route_id))) {
|
| return NULL;
|
| }
|
|
|
| + if (route_id == MSG_ROUTING_NONE)
|
| + return NULL;
|
| +
|
| CommandBufferProxy* command_buffer = new CommandBufferProxy(this, route_id);
|
| router_.AddRoute(route_id, command_buffer);
|
| proxies_[route_id] = command_buffer;
|
|
|