Index: content/browser/browser_main_loop.cc |
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc |
index 034b3f5a995b4b843ad9994968798486dd122840..aeb9fb830ed29f56d6c7e2309ab681d1002834f4 100644 |
--- a/content/browser/browser_main_loop.cc |
+++ b/content/browser/browser_main_loop.cc |
@@ -430,6 +430,16 @@ void BrowserMainLoop::EarlyInitialization() { |
} |
#endif // !defined(OS_IOS) |
+ if (parsed_command_line_.HasSwitch(switches::kEnableNativeGpuMemoryBuffers)) { |
+ BrowserGpuChannelHostFactory::EnableGpuMemoryBufferFactoryUsage( |
+ gfx::GpuMemoryBuffer::MAP); |
+ } |
+ |
+#if defined(USE_OZONE) |
+ BrowserGpuChannelHostFactory::EnableGpuMemoryBufferFactoryUsage( |
+ gfx::GpuMemoryBuffer::SCANOUT); |
+#endif |
+ |
if (parts_) |
parts_->PostEarlyInitialization(); |
} |