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

Unified Diff: chrome/renderer/webplugin_delegate_proxy.cc

Issue 6588090: Removed GPU plugin.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months 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 | « chrome/renderer/webplugin_delegate_proxy.h ('k') | chrome/test/ui/pepper_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/webplugin_delegate_proxy.cc
===================================================================
--- chrome/renderer/webplugin_delegate_proxy.cc (revision 76392)
+++ chrome/renderer/webplugin_delegate_proxy.cc (working copy)
@@ -1055,14 +1055,6 @@
void WebPluginDelegateProxy::WillDestroyWindow() {
DCHECK(window_);
plugin_->WillDestroyWindow(window_);
-#if defined(OS_MACOSX)
- if (window_) {
- // This is actually a "fake" window handle only for the GPU
- // plugin. Deallocate it on the browser side.
- if (render_view_)
- render_view_->DestroyFakePluginWindowHandle(window_);
- }
-#endif
window_ = gfx::kNullPluginWindow;
}
@@ -1444,37 +1436,6 @@
}
#endif
-CommandBufferProxy* WebPluginDelegateProxy::CreateCommandBuffer() {
-#if defined(ENABLE_GPU)
-#if defined(OS_MACOSX)
- if (!BindFakePluginWindowHandle(true))
- return NULL;
-#endif
- int command_buffer_id;
- if (!Send(new PluginMsg_CreateCommandBuffer(instance_id_,
- &command_buffer_id))) {
- return NULL;
- }
-
- CommandBufferProxy* command_buffer =
- new CommandBufferProxy(channel_host_, command_buffer_id);
- channel_host_->AddRoute(command_buffer_id, command_buffer, NULL);
- return command_buffer;
-#else
- return NULL;
-#endif // ENABLE_GPU
-}
-
-void WebPluginDelegateProxy::DestroyCommandBuffer(
- CommandBufferProxy* command_buffer) {
- DCHECK(command_buffer);
-#if defined(ENABLE_GPU)
- Send(new PluginMsg_DestroyCommandBuffer(instance_id_));
- channel_host_->RemoveRoute(command_buffer->route_id());
- delete command_buffer;
-#endif
-}
-
gfx::PluginWindowHandle WebPluginDelegateProxy::GetPluginWindowHandle() {
return window_;
}
« no previous file with comments | « chrome/renderer/webplugin_delegate_proxy.h ('k') | chrome/test/ui/pepper_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698