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 30185e31d3ebf7d246a0de58b51dc90ae869cc82..90e04e829317e29b4787bdc21b2e298376c51e31 100644 |
--- a/content/browser/browser_plugin/browser_plugin_embedder_helper.cc |
+++ b/content/browser/browser_plugin/browser_plugin_embedder_helper.cc |
@@ -56,6 +56,8 @@ bool BrowserPluginEmbedderHelper::OnMessageReceived( |
IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetAutoSize, OnSetAutoSize) |
IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_PluginAtPositionResponse, |
OnPluginAtPositionResponse) |
+ IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_BuffersSwappedACK, |
+ OnSwapBuffersACK) |
IPC_MESSAGE_UNHANDLED(handled = false) |
IPC_END_MESSAGE_MAP() |
return handled; |
@@ -129,6 +131,15 @@ void BrowserPluginEmbedderHelper::OnUpdateRectACK( |
resize_guest_params); |
} |
+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); |
} |