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

Unified Diff: content/renderer/browser_plugin/browser_plugin.cc

Issue 690263003: <webview>: Remove broken captureVisibleRegion code until feature is properly supported (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin.h ('k') | content/renderer/child_frame_compositing_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/browser_plugin/browser_plugin.cc
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
index e6c1f5eb61b38155de77ff32797e7668683a21a0..2eca1da2c993cfb58cc0a9cf6b542fbf984c26ff 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -95,8 +95,6 @@ bool BrowserPlugin::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(BrowserPluginMsg_AdvanceFocus, OnAdvanceFocus)
IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginMsg_CompositorFrameSwapped,
OnCompositorFrameSwapped(message))
- IPC_MESSAGE_HANDLER(BrowserPluginMsg_CopyFromCompositingSurface,
- OnCopyFromCompositingSurface)
IPC_MESSAGE_HANDLER(BrowserPluginMsg_GuestGone, OnGuestGone)
IPC_MESSAGE_HANDLER(BrowserPluginMsg_SetContentsOpaque, OnSetContentsOpaque)
IPC_MESSAGE_HANDLER(BrowserPluginMsg_SetCursor, OnSetCursor)
@@ -191,23 +189,6 @@ void BrowserPlugin::OnCompositorFrameSwapped(const IPC::Message& message) {
param.b.shared_memory_handle);
}
-void BrowserPlugin::OnCopyFromCompositingSurface(int browser_plugin_instance_id,
- int request_id,
- gfx::Rect source_rect,
- gfx::Size dest_size) {
- if (!compositing_helper_.get()) {
- browser_plugin_manager()->Send(
- new BrowserPluginHostMsg_CopyFromCompositingSurfaceAck(
- render_view_routing_id_,
- browser_plugin_instance_id_,
- request_id,
- SkBitmap()));
- return;
- }
- compositing_helper_->CopyFromCompositingSurface(request_id, source_rect,
- dest_size);
-}
-
void BrowserPlugin::OnGuestGone(int browser_plugin_instance_id) {
guest_crashed_ = true;
@@ -428,7 +409,6 @@ bool BrowserPlugin::ShouldForwardToBrowserPlugin(
case BrowserPluginMsg_Attach_ACK::ID:
case BrowserPluginMsg_AdvanceFocus::ID:
case BrowserPluginMsg_CompositorFrameSwapped::ID:
- case BrowserPluginMsg_CopyFromCompositingSurface::ID:
case BrowserPluginMsg_GuestGone::ID:
case BrowserPluginMsg_SetContentsOpaque::ID:
case BrowserPluginMsg_SetCursor::ID:
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin.h ('k') | content/renderer/child_frame_compositing_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698