| Index: content/browser/browser_main_loop.cc
|
| diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
|
| index 9f189debd0ceaca3e2eab3ef833a28ec0600e7bb..8734b2b2b8b5ef0136f753ed88b79d1087e945e4 100644
|
| --- a/content/browser/browser_main_loop.cc
|
| +++ b/content/browser/browser_main_loop.cc
|
| @@ -477,7 +477,14 @@ void BrowserMainLoop::EarlyInitialization() {
|
| }
|
| #endif // !defined(OS_IOS)
|
|
|
| - if (parsed_command_line_.HasSwitch(switches::kEnableNativeGpuMemoryBuffers)) {
|
| +#if defined(OS_MACOSX)
|
| + bool enable_native_gpu_memory_buffers =
|
| + !parsed_command_line_.HasSwitch(switches::kDisableNativeGpuMemoryBuffers);
|
| +#else
|
| + bool enable_native_gpu_memory_buffers =
|
| + parsed_command_line_.HasSwitch(switches::kEnableNativeGpuMemoryBuffers);
|
| +#endif
|
| + if (enable_native_gpu_memory_buffers) {
|
| BrowserGpuChannelHostFactory::EnableGpuMemoryBufferFactoryUsage(
|
| gfx::GpuMemoryBuffer::MAP);
|
| BrowserGpuChannelHostFactory::EnableGpuMemoryBufferFactoryUsage(
|
|
|