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

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

Issue 11364133: Messages needed for webview compositor communication. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Routed not control 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
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.h ('k') | content/common/browser_plugin_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_plugin/browser_plugin_guest.cc
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
index 4f8c0360a6e95d3fcff2f7c7f396751579e54d4e..435f73b3966b5f32a0bdfd51c050200c754d15c2 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
@@ -335,6 +335,30 @@ int BrowserPluginGuest::embedder_routing_id() const {
return embedder_web_contents_->GetRoutingID();
}
+void BrowserPluginGuest::SetCompositingBufferData(int gpu_process_id,
+ uint32 client_id,
+ uint32 context_id,
+ uint32 texture_id_0,
+ uint32 texture_id_1,
+ uint32 sync_point) {
+ // This is the signal for having no context
+ if (texture_id_0 == 0) {
+ DCHECK(texture_id_1 == 0);
+ return;
+ }
+
+ DCHECK(texture_id_1 != 0);
+ DCHECK(texture_id_0 != texture_id_1);
+
+ surface_handle_ = gfx::GLSurfaceHandle(gfx::kNullPluginWindow, true);
+ surface_handle_.parent_gpu_process_id = gpu_process_id;
+ surface_handle_.parent_client_id = client_id;
+ surface_handle_.parent_context_id = context_id;
+ surface_handle_.parent_texture_id[0] = texture_id_0;
+ surface_handle_.parent_texture_id[1] = texture_id_1;
+ surface_handle_.sync_point = sync_point;
+}
+
bool BrowserPluginGuest::InAutoSizeBounds(const gfx::Size& size) const {
return size.width() <= max_auto_size_.width() &&
size.height() <= max_auto_size_.height();
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.h ('k') | content/common/browser_plugin_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698