Index: content/browser/browser_main_loop.cc |
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc |
index 0e38b9ceae3e5dcd100b66964411ab3b9868b504..d8e4778ab3723e32a83a775264fcedc42b1ed62b 100644 |
--- a/content/browser/browser_main_loop.cc |
+++ b/content/browser/browser_main_loop.cc |
@@ -108,6 +108,10 @@ |
#include "content/browser/theme_helper_mac.h" |
#endif |
+#if defined(USE_OZONE) |
+#include "ui/ozone/public/client_native_pixmap_manager.h" |
+#endif |
+ |
#if defined(OS_WIN) |
#include <windows.h> |
#include <commctrl.h> |
@@ -614,6 +618,12 @@ void BrowserMainLoop::PostMainMessageLoopStart() { |
} |
#endif |
+#if defined(USE_OZONE) |
+ client_native_pixmap_manager_ = ui::ClientNativePixmapManager::Create(); |
+ ui::ClientNativePixmapManager::SetInstance( |
+ client_native_pixmap_manager_.get()); |
+#endif |
+ |
if (parsed_command_line_.HasSwitch(switches::kMemoryMetrics)) { |
TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:MemoryObserver"); |
memory_observer_.reset(new MemoryObserver()); |