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

Unified Diff: content/child/child_thread_impl.cc

Issue 1532813002: Replace IOSurfaceManager by directly passing IOSurface Mach ports over Chrome IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 12 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 | « content/child/child_io_surface_manager_mac.cc ('k') | content/common/child_process_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_thread_impl.cc
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc
index 3c6d86986676cda0c8d18b19b19283bb05fa3c27..d9b02b2769ae7eacce85a7490a4436613cabd478 100644
--- a/content/child/child_thread_impl.cc
+++ b/content/child/child_thread_impl.cc
@@ -70,10 +70,6 @@
#include "third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h"
#endif
-#if defined(OS_MACOSX)
-#include "content/child/child_io_surface_manager_mac.h"
-#endif
-
#if defined(USE_OZONE)
#include "ui/ozone/public/client_native_pixmap_factory.h"
#endif
@@ -179,29 +175,6 @@ class SuicideOnChannelErrorFilter : public IPC::MessageFilter {
#endif // OS(POSIX)
-#if defined(OS_MACOSX)
-class IOSurfaceManagerFilter : public IPC::MessageFilter {
- public:
- // Overridden from IPC::MessageFilter:
- bool OnMessageReceived(const IPC::Message& message) override {
- bool handled = true;
- IPC_BEGIN_MESSAGE_MAP(IOSurfaceManagerFilter, message)
- IPC_MESSAGE_HANDLER(ChildProcessMsg_SetIOSurfaceManagerToken,
- OnSetIOSurfaceManagerToken)
- IPC_MESSAGE_UNHANDLED(handled = false)
- IPC_END_MESSAGE_MAP()
- return handled;
- }
-
- protected:
- ~IOSurfaceManagerFilter() override {}
-
- void OnSetIOSurfaceManagerToken(const IOSurfaceManagerToken& token) {
- ChildIOSurfaceManager::GetInstance()->set_token(token);
- }
-};
-#endif
-
#if defined(USE_OZONE)
class ClientNativePixmapFactoryFilter : public IPC::MessageFilter {
public:
@@ -481,10 +454,6 @@ void ChildThreadImpl::Init(const Options& options) {
channel_->AddFilter(new SuicideOnChannelErrorFilter());
#endif
-#if defined(OS_MACOSX)
- channel_->AddFilter(new IOSurfaceManagerFilter());
-#endif
-
#if defined(USE_OZONE)
channel_->AddFilter(new ClientNativePixmapFactoryFilter());
#endif
« no previous file with comments | « content/child/child_io_surface_manager_mac.cc ('k') | content/common/child_process_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698