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

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: retry logic and remove singleton 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
« no previous file with comments | « no previous file | content/browser/compositor/buffer_queue_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 67f5a8af682ec7ef77d69fba8e8b41763311e0b2..1752f3b8c1334e5ec794cc39a5a3d71d8f147a10 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());
« no previous file with comments | « no previous file | content/browser/compositor/buffer_queue_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698