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

Unified Diff: ui/views/mus/window_manager_connection.cc

Issue 2233003003: services/ui: Inject GpuService instance where needed, instead of singleton. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 | « ui/views/mus/surface_context_factory.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/window_manager_connection.cc
diff --git a/ui/views/mus/window_manager_connection.cc b/ui/views/mus/window_manager_connection.cc
index 1aa43cef6a32e5b0c49ec0ee79da21770559bfa9..8aa7355d1b9e12446b869b0402902f8ae8e8800e 100644
--- a/ui/views/mus/window_manager_connection.cc
+++ b/ui/views/mus/window_manager_connection.cc
@@ -140,7 +140,8 @@ WindowManagerConnection::WindowManagerConnection(
lazy_tls_ptr.Pointer()->Set(this);
gpu_service_ = ui::GpuService::Initialize(connector);
- compositor_context_factory_.reset(new views::SurfaceContextFactory());
+ compositor_context_factory_.reset(
+ new views::SurfaceContextFactory(gpu_service_.get()));
aura::Env::GetInstance()->set_context_factory(
compositor_context_factory_.get());
client_.reset(new ui::WindowTreeClient(this, nullptr, nullptr));
« no previous file with comments | « ui/views/mus/surface_context_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698