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

Unified Diff: content/common/browser_plugin_messages.h

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/common/browser_plugin_messages.h
diff --git a/content/common/browser_plugin_messages.h b/content/common/browser_plugin_messages.h
index 432c1a150d741d1d37b44527be92128c27bd9f8e..9644d12b3be16e40a8e9cd07de0eb237837d4ee7 100644
--- a/content/common/browser_plugin_messages.h
+++ b/content/common/browser_plugin_messages.h
@@ -68,6 +68,13 @@ IPC_STRUCT_BEGIN(BrowserPluginHostMsg_ResizeGuest_Params)
IPC_STRUCT_MEMBER(bool, resize_pending)
// Indicates the scale factor of the embedder WebView.
IPC_STRUCT_MEMBER(float, scale_factor)
+ // Hardware Accelerated Surface Params.
+ IPC_STRUCT_MEMBER(int, gpu_process_id)
+ IPC_STRUCT_MEMBER(uint32, client_id)
+ IPC_STRUCT_MEMBER(uint32, context_id)
+ IPC_STRUCT_MEMBER(uint32, texture_id_0)
+ IPC_STRUCT_MEMBER(uint32, texture_id_1)
+ IPC_STRUCT_MEMBER(uint32, sync_point)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(BrowserPluginMsg_LoadCommit_Params)
@@ -189,6 +196,12 @@ IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_NavigateGuest,
std::string /* src */,
BrowserPluginHostMsg_ResizeGuest_Params /* resize_params */)
+// Acknowledge that we presented a HW buffer.
+IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_BuffersSwappedACK,
+ int /* route_id */,
+ int /* gpu_host_id */,
+ uint32 /* sync_point */)
+
// When a BrowserPlugin has been removed from the embedder's DOM, it informs
// the browser process to cleanup the guest.
IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed,
@@ -287,3 +300,17 @@ IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect,
int /* instance_id */,
int /* message_id */,
BrowserPluginMsg_UpdateRect_Params)
+
+// f accelerated buffers were swapped in the guest, forward this
rjkroege 2012/11/08 15:08:50 If? And more explanation for what these messages d
alexst (slow to review) 2012/11/08 18:12:17 it was actually ctrl + f to find something. Update
+// information to the embedder.
+IPC_MESSAGE_CONTROL4(BrowserPluginMsg_BuffersSwapped,
+ int /* instance_id */,
+ uint64 /* surface_handle */,
+ int /* route_id */,
+ int /* gpu_host_id */)
+
+// HW accelerated surface was resized in the guest, forward this
+// information to the embedder.
+IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SurfaceResize,
+ int /* instance_id */,
+ gfx::Size /* size */)

Powered by Google App Engine
This is Rietveld 408576698