Index: content/browser/browser_main_loop.cc |
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc |
index a7178dbb2bc5061138458029550860e730499d01..b306324198a7df1cb4ea3dd044d423ab6c620ae1 100644 |
--- a/content/browser/browser_main_loop.cc |
+++ b/content/browser/browser_main_loop.cc |
@@ -93,6 +93,7 @@ |
#if defined(OS_MACOSX) && !defined(OS_IOS) |
#include "base/mac/memory_pressure_monitor_mac.h" |
#include "content/browser/bootstrap_sandbox_mac.h" |
+#include "content/browser/browser_io_surface_manager_mac.h" |
#include "content/browser/cocoa/system_hotkey_helper_mac.h" |
#include "content/browser/compositor/browser_compositor_view_mac.h" |
#include "content/browser/theme_helper_mac.h" |
@@ -608,6 +609,13 @@ void BrowserMainLoop::MainMessageLoopStart() { |
} |
#endif |
+#if defined(OS_MACOSX) && !defined(OS_IOS) |
+ { |
+ TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:IOSurfaceManager"); |
+ IOSurfaceManager::SetInstance(BrowserIOSurfaceManager::GetInstance()); |
+ } |
+#endif |
+ |
if (parsed_command_line_.HasSwitch(switches::kMemoryMetrics)) { |
TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:MemoryObserver"); |
memory_observer_.reset(new MemoryObserver()); |