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

Unified Diff: content/browser/browser_plugin/browser_plugin_message_filter.cc

Issue 590523003: Remove some dead BrowserPlugin and OOPIF compositing code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 6 years, 3 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
Index: content/browser/browser_plugin/browser_plugin_message_filter.cc
diff --git a/content/browser/browser_plugin/browser_plugin_message_filter.cc b/content/browser/browser_plugin/browser_plugin_message_filter.cc
index da0de0f0d64c16dee27fb3bccdf84a54310997eb..c39476d2fbc54ead575dbc5a361d8a51ff74dd60 100644
--- a/content/browser/browser_plugin/browser_plugin_message_filter.cc
+++ b/content/browser/browser_plugin/browser_plugin_message_filter.cc
@@ -10,7 +10,6 @@
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/common/browser_plugin/browser_plugin_constants.h"
#include "content/common/browser_plugin/browser_plugin_messages.h"
-#include "content/common/gpu/gpu_messages.h"
#include "content/common/view_messages.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_plugin_guest_manager.h"
@@ -39,14 +38,7 @@ bool BrowserPluginMessageFilter::OnMessageReceived(
// thread.
return true;
}
- bool handled = true;
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- IPC_BEGIN_MESSAGE_MAP(BrowserPluginMessageFilter, message)
- IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_BuffersSwappedACK,
- OnSwapBuffersACK)
- IPC_MESSAGE_UNHANDLED(handled = false)
- IPC_END_MESSAGE_MAP()
- return handled;
+ return false;
}
void BrowserPluginMessageFilter::OnDestruct() const {
@@ -87,16 +79,4 @@ void BrowserPluginMessageFilter::ForwardMessageToGuest(
->OnMessageReceivedFromEmbedder(message);
}
-void BrowserPluginMessageFilter::OnSwapBuffersACK(
- const FrameHostMsg_BuffersSwappedACK_Params& params) {
- GpuProcessHost* gpu_host = GpuProcessHost::FromID(params.gpu_host_id);
- if (!gpu_host)
- return;
- AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
- ack_params.mailbox = params.mailbox;
- ack_params.sync_point = params.sync_point;
- gpu_host->Send(new AcceleratedSurfaceMsg_BufferPresented(params.gpu_route_id,
- ack_params));
-}
-
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698