Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Unified Diff: content/browser/browser_plugin/browser_plugin_embedder_helper.cc

Issue 11364133: Messages needed for webview compositor communication. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reduced scope, fixed comments. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698