OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #include "content/browser/browser_plugin/browser_plugin_guest_manager.h" | 5 #include "content/browser/browser_plugin/browser_plugin_guest_manager.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 8 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
9 #include "content/browser/browser_plugin/browser_plugin_host_factory.h" | 9 #include "content/browser/browser_plugin/browser_plugin_host_factory.h" |
10 #include "content/browser/renderer_host/render_view_host_impl.h" | 10 #include "content/browser/renderer_host/render_view_host_impl.h" |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 } | 204 } |
205 return NULL; | 205 return NULL; |
206 } | 206 } |
207 | 207 |
208 // We only get here during teardown if we have one last buffer pending, | 208 // We only get here during teardown if we have one last buffer pending, |
209 // otherwise the ACK is handled by the guest. | 209 // otherwise the ACK is handled by the guest. |
210 void BrowserPluginGuestManager::OnUnhandledSwapBuffersACK( | 210 void BrowserPluginGuestManager::OnUnhandledSwapBuffersACK( |
211 int instance_id, | 211 int instance_id, |
212 int route_id, | 212 int route_id, |
213 int gpu_host_id, | 213 int gpu_host_id, |
214 const std::string& mailbox_name, | 214 const gpu::Mailbox& mailbox_name, |
215 uint32 sync_point) { | 215 uint32 sync_point) { |
216 BrowserPluginGuest::AcknowledgeBufferPresent(route_id, | 216 BrowserPluginGuest::AcknowledgeBufferPresent(route_id, |
217 gpu_host_id, | 217 gpu_host_id, |
218 mailbox_name, | 218 mailbox_name, |
219 sync_point); | 219 sync_point); |
220 } | 220 } |
221 | 221 |
222 } // namespace content | 222 } // namespace content |
OLD | NEW |