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

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: Fix Windows compile Created 5 years 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/child/child_thread_impl.cc
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc
index 3acec6173349f6bc46a08b67d1f99b527d460125..75482e9c53119e02ec7be6e5d750ae8fc928ab2f 100644
--- a/content/child/child_thread_impl.cc
+++ b/content/child/child_thread_impl.cc
@@ -69,10 +69,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
@@ -178,29 +174,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:
@@ -480,10 +453,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

Powered by Google App Engine
This is Rietveld 408576698