Chromium Code Reviews| Index: content/renderer/browser_plugin/browser_plugin_manager.cc |
| diff --git a/content/renderer/browser_plugin/browser_plugin_manager.cc b/content/renderer/browser_plugin/browser_plugin_manager.cc |
| index 2df1254321e0100fe0a974d2da91ef37accc1633..51c846bdae455bb8b072154cb346cd6be30ea798 100644 |
| --- a/content/renderer/browser_plugin/browser_plugin_manager.cc |
| +++ b/content/renderer/browser_plugin/browser_plugin_manager.cc |
| @@ -40,6 +40,15 @@ BrowserPlugin* BrowserPluginManager::GetBrowserPlugin(int instance_id) const { |
| return instances_.Lookup(instance_id); |
| } |
| +void BrowserPluginManager::WillInitiatePaint() { |
|
Fady Samuel
2012/07/06 15:14:44
I'm confused, who calls this?
scshunt
2012/07/06 16:39:03
RenderViewImpl.
|
| + for (IDMap<BrowserPlugin>::iterator it(&instances_); |
| + !it.IsAtEnd(); it.Advance()) { |
| + BrowserPlugin* plugin = it.GetCurrentValue(); |
| + DCHECK(plugin); |
| + plugin->WillInitiatePaint(); |
| + } |
| +} |
| + |
| bool BrowserPluginManager::OnControlMessageReceived( |
| const IPC::Message& message) { |
| bool handled = true; |
| @@ -48,6 +57,7 @@ bool BrowserPluginManager::OnControlMessageReceived( |
| IPC_MESSAGE_HANDLER(BrowserPluginMsg_GuestCrashed,OnGuestCrashed) |
| IPC_MESSAGE_HANDLER(BrowserPluginMsg_UpdateURL, OnUpdateURL) |
| IPC_MESSAGE_HANDLER(BrowserPluginMsg_AdvanceFocus, OnAdvanceFocus) |
| + IPC_MESSAGE_HANDLER(BrowserPluginMsg_BuffersSwapped, OnBuffersSwapped) |
| IPC_MESSAGE_UNHANDLED(handled = false) |
| IPC_END_MESSAGE_MAP() |
| return handled; |
| @@ -72,5 +82,9 @@ void BrowserPluginManager::OnAdvanceFocus(int instance_id, bool reverse) { |
| GetBrowserPlugin(instance_id)->AdvanceFocus(reverse); |
| } |
| +void BrowserPluginManager::OnBuffersSwapped(int instance_id, uint64 surface_handle, const BrowserPlugin_SwapInfo& info) { |
| + GetBrowserPlugin(instance_id)->BuffersSwapped(surface_handle, info); |
| +} |
| + |
| } // namespace browser_plugin |
| } // namespace content |