diff options
author | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-10 14:36:51 +0000 |
---|---|---|
committer | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-10 14:36:51 +0000 |
commit | 4ac0a0958a86c3310f36745cf9bb08ced79f7336 (patch) | |
tree | 2a2a2192048478df67beb18e841c904a9c95d989 /chrome/renderer/webplugin_delegate_proxy.cc | |
parent | f8ee26e45e8a04bb75a3e7b0449b8acf3efb04e2 (diff) | |
download | chromium_src-4ac0a0958a86c3310f36745cf9bb08ced79f7336.zip chromium_src-4ac0a0958a86c3310f36745cf9bb08ced79f7336.tar.gz chromium_src-4ac0a0958a86c3310f36745cf9bb08ced79f7336.tar.bz2 |
Revert 41158 - Implement the CoreAnimation drawing model for plugins, sharing IPC and some rendering code with the GPU Plugin. The drawing model negotiation is currently disabled so this should have no visible impact to plugins.
BUG=32012
TEST=make sure the pepper GPU plugins still work.
Review URL: http://codereview.chromium.org/673001
TBR=pinkerton@chromium.org
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41159 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webplugin_delegate_proxy.cc')
-rw-r--r-- | chrome/renderer/webplugin_delegate_proxy.cc | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/chrome/renderer/webplugin_delegate_proxy.cc b/chrome/renderer/webplugin_delegate_proxy.cc index 10bf1f8..b00f1b5 100644 --- a/chrome/renderer/webplugin_delegate_proxy.cc +++ b/chrome/renderer/webplugin_delegate_proxy.cc @@ -402,8 +402,6 @@ void WebPluginDelegateProxy::OnMessageReceived(const IPC::Message& msg) { OnDeferResourceLoading) #if defined(OS_MACOSX) - IPC_MESSAGE_HANDLER(PluginHostMsg_BindFakePluginWindowHandle, - OnBindFakePluginWindowHandle); IPC_MESSAGE_HANDLER(PluginHostMsg_UpdateGeometry_ACK, OnUpdateGeometry_ACK) // Used only on 10.6 and later. @@ -1257,38 +1255,25 @@ WebPluginDelegateProxy::CreateSeekableResourceClient( return proxy; } +CommandBufferProxy* WebPluginDelegateProxy::CreateCommandBuffer() { +#if defined(ENABLE_GPU) #if defined(OS_MACOSX) -void WebPluginDelegateProxy::OnBindFakePluginWindowHandle() { - BindFakePluginWindowHandle(); -} - -// Synthesize a fake window handle for the plug-in to identify the instance -// to the browser, allowing mapping to a surface for hardware acceleration -// of plug-in content. The browser generates the handle which is then set on -// the plug-in. Returns true if it successfully sets the window handle on the -// plug-in. -bool WebPluginDelegateProxy::BindFakePluginWindowHandle() { + // We need to synthesize a fake window handle for this nested + // delegate to identify the instance of the GPU plugin back to the + // browser. gfx::PluginWindowHandle fake_window = NULL; if (render_view_) fake_window = render_view_->AllocateFakePluginWindowHandle(); // If we aren't running on 10.6, this allocation will fail. if (!fake_window) - return false; + return NULL; OnSetWindow(fake_window); if (!Send(new PluginMsg_SetFakeGPUPluginWindowHandle(instance_id_, fake_window))) { - return false; + return NULL; } - return true; -} #endif -CommandBufferProxy* WebPluginDelegateProxy::CreateCommandBuffer() { -#if defined(ENABLE_GPU) -#if defined(OS_MACOSX) - if (!BindFakePluginWindowHandle()) - return NULL; -#endif int command_buffer_id; if (!Send(new PluginMsg_CreateCommandBuffer(instance_id_, &command_buffer_id))) { |