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

Unified Diff: content/app/content_main_runner.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/app/content_main_runner.cc
diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc
index 25af5184ca7238fbc6e47d562f1ac769c50fe19d..7fb473d4ee1b161b53a5c4be480e2395c7c8e2a5 100644
--- a/content/app/content_main_runner.cc
+++ b/content/app/content_main_runner.cc
@@ -86,9 +86,7 @@
#if !defined(OS_IOS)
#include "base/power_monitor/power_monitor_device_source.h"
#include "content/app/mac/mac_init.h"
-#include "content/browser/browser_io_surface_manager_mac.h"
#include "content/browser/mach_broker_mac.h"
-#include "content/child/child_io_surface_manager_mac.h"
#include "content/common/sandbox_init_mac.h"
#endif // !OS_IOS
#endif // OS_WIN
@@ -653,19 +651,6 @@ class ContentMainRunnerImpl : public ContentMainRunner {
(!delegate_ || delegate_->ShouldSendMachPort(process_type))) {
MachBroker::ChildSendTaskPortToParent();
}
-
- if (!command_line.HasSwitch(switches::kSingleProcess) &&
- !process_type.empty() && (process_type == switches::kRendererProcess ||
- process_type == switches::kGpuProcess)) {
- base::mac::ScopedMachSendRight service_port =
- BrowserIOSurfaceManager::LookupServicePort(getppid());
- if (service_port.is_valid()) {
- ChildIOSurfaceManager::GetInstance()->set_service_port(
- service_port.release());
- gfx::IOSurfaceManager::SetInstance(
- ChildIOSurfaceManager::GetInstance());
- }
- }
#elif defined(OS_WIN)
base::win::SetupCRT(command_line);
#endif

Powered by Google App Engine
This is Rietveld 408576698