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

Unified Diff: content/browser/browser_main_loop.cc

Issue 1165823003: Re-land: content: Enable native GpuMemoryBuffers by default on MacOSX. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 6 months 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/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(
« no previous file with comments | « no previous file | content/child/child_thread_impl_browsertest.cc » ('j') | content/public/common/content_switches.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698