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

Unified Diff: content/browser/browser_main_loop.cc

Issue 2247173002: gpu: Use GpuMemoryBufferManager from GpuService when possible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus-gpu-memory-buffer-manager
Patch Set: Created 4 years, 4 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/gpu_process_transport_factory.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 7d2eaa5755a987b141094ab619d33f4f241b8996..5f429fd120f472eba673db2370fcce2cad3bb0b7 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -1228,14 +1228,14 @@ int BrowserMainLoop::BrowserThreadsStarted() {
shell::ShellIsRemote()) {
established_gpu_channel = always_uses_gpu = false;
}
- BrowserGpuChannelHostFactory::Initialize(established_gpu_channel);
- ImageTransportFactory::Initialize();
-
gpu::GpuChannelEstablishFactory* factory =
GetContentClient()->browser()->GetGpuChannelEstablishFactory();
- if (!factory)
+ if (!factory) {
+ BrowserGpuChannelHostFactory::Initialize(established_gpu_channel);
factory = BrowserGpuChannelHostFactory::instance();
+ }
DCHECK(factory);
+ ImageTransportFactory::Initialize();
ImageTransportFactory::GetInstance()->SetGpuChannelEstablishFactory(factory);
#if defined(USE_AURA)
bool use_mus_in_renderer = base::CommandLine::ForCurrentProcess()->HasSwitch(
« no previous file with comments | « no previous file | content/browser/compositor/gpu_process_transport_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698