| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if defined(OS_WIN) | 5 #if defined(OS_WIN) |
| 6 #include <windows.h> | 6 #include <windows.h> |
| 7 #endif | 7 #endif |
| 8 | 8 |
| 9 #include "content/browser/renderer_host/gpu_message_filter.h" | 9 #include "content/browser/renderer_host/gpu_message_filter.h" |
| 10 | 10 |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 // the GpuProcessStub with that routing ID is not in the MessageRouter. | 198 // the GpuProcessStub with that routing ID is not in the MessageRouter. |
| 199 reply->set_reply_error(); | 199 reply->set_reply_error(); |
| 200 Send(reply); | 200 Send(reply); |
| 201 return; | 201 return; |
| 202 } | 202 } |
| 203 | 203 |
| 204 ui_shim->Synchronize(new SynchronizeCallback(this, reply)); | 204 ui_shim->Synchronize(new SynchronizeCallback(this, reply)); |
| 205 } | 205 } |
| 206 | 206 |
| 207 void GpuMessageFilter::OnCreateViewCommandBuffer( | 207 void GpuMessageFilter::OnCreateViewCommandBuffer( |
| 208 gfx::PluginWindowHandle compositing_surface, |
| 208 int32 render_view_id, | 209 int32 render_view_id, |
| 209 const GPUCreateCommandBufferConfig& init_params, | 210 const GPUCreateCommandBufferConfig& init_params, |
| 210 IPC::Message* reply) { | 211 IPC::Message* reply) { |
| 211 GpuProcessHostUIShim* ui_shim = GpuProcessHostUIShim::FromID(gpu_host_id_); | 212 GpuProcessHostUIShim* ui_shim = GpuProcessHostUIShim::FromID(gpu_host_id_); |
| 212 if (!ui_shim) { | 213 if (!ui_shim) { |
| 213 // TODO(apatrick): Eventually, this IPC message will be routed to a | 214 // TODO(apatrick): Eventually, this IPC message will be routed to a |
| 214 // GpuProcessStub with a particular routing ID. The error will be set if | 215 // GpuProcessStub with a particular routing ID. The error will be set if |
| 215 // the GpuProcessStub with that routing ID is not in the MessageRouter. | 216 // the GpuProcessStub with that routing ID is not in the MessageRouter. |
| 216 reply->set_reply_error(); | 217 reply->set_reply_error(); |
| 217 Send(reply); | 218 Send(reply); |
| 218 return; | 219 return; |
| 219 } | 220 } |
| 220 | 221 |
| 221 ui_shim->CreateViewCommandBuffer( | 222 ui_shim->CreateViewCommandBuffer( |
| 223 compositing_surface, |
| 222 render_view_id, | 224 render_view_id, |
| 223 render_process_id_, | 225 render_process_id_, |
| 224 init_params, | 226 init_params, |
| 225 new CreateCommandBufferCallback(this, reply)); | 227 new CreateCommandBufferCallback(this, reply)); |
| 226 } | 228 } |
| OLD | NEW |