Chromium Code Reviews| 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 */) |