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

Unified Diff: content/browser/browser_main_loop.cc

Issue 1189943002: content: Fix lost context handling when using native GpuMemoryBuffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests 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..ba92bebbcf82c82d329f8d9e5615c893e7b7babb 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -477,18 +477,6 @@ void BrowserMainLoop::EarlyInitialization() {
}
#endif // !defined(OS_IOS)
- if (parsed_command_line_.HasSwitch(switches::kEnableNativeGpuMemoryBuffers)) {
- BrowserGpuChannelHostFactory::EnableGpuMemoryBufferFactoryUsage(
- gfx::GpuMemoryBuffer::MAP);
- BrowserGpuChannelHostFactory::EnableGpuMemoryBufferFactoryUsage(
- gfx::GpuMemoryBuffer::PERSISTENT_MAP);
- }
-
-#if defined(USE_OZONE)
- BrowserGpuChannelHostFactory::EnableGpuMemoryBufferFactoryUsage(
- gfx::GpuMemoryBuffer::SCANOUT);
-#endif
-
base::DiscardableMemoryAllocator::SetInstance(
HostDiscardableSharedMemoryManager::current());

Powered by Google App Engine
This is Rietveld 408576698