Index: content/browser/browser_plugin/browser_plugin_embedder_helper.cc |
diff --git a/content/browser/browser_plugin/browser_plugin_embedder_helper.cc b/content/browser/browser_plugin/browser_plugin_embedder_helper.cc |
index da5e425764148e3fa9f29c3bd0182229cb9ea708..6da82238009b9d1438c4532c4ec83c4af6f70c0f 100644 |
--- a/content/browser/browser_plugin/browser_plugin_embedder_helper.cc |
+++ b/content/browser/browser_plugin/browser_plugin_embedder_helper.cc |
@@ -53,6 +53,8 @@ bool BrowserPluginEmbedderHelper::OnMessageReceived( |
OnSetGuestVisibility) |
IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_DragStatusUpdate, |
OnDragStatusUpdate) |
+ IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_BuffersSwappedACK, |
+ OnSwapBuffersACK) |
IPC_MESSAGE_UNHANDLED(handled = false) |
IPC_END_MESSAGE_MAP() |
return handled; |
@@ -131,6 +133,15 @@ void BrowserPluginEmbedderHelper::OnUpdateRectACK(int instance_id, |
embedder_->UpdateRectACK(instance_id, message_id, size); |
} |
+void BrowserPluginEmbedderHelper::OnSwapBuffersACK(int route_id, |
+ int gpu_host_id, |
+ uint32 sync_point) { |
+ RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
+ gpu_host_id, |
+ true, |
+ sync_point); |
+} |
+ |
void BrowserPluginEmbedderHelper::OnSetFocus(int instance_id, bool focused) { |
embedder_->SetFocus(instance_id, focused); |
} |