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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2200353002: Revert of services/ui: Have an explicit lifetime/ownership of ui::GpuService. (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 | « content/renderer/render_thread_impl.h ('k') | services/ui/common/gpu_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 6f25770f5eca5fc3e679e9d0bb386915098861e9..3e5b622431f3d0e024d5529fdb99e6577ffc5858 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -643,8 +643,7 @@
#if defined(MOJO_SHELL_CLIENT)
if (IsRunningInMash())
- gpu_service_ =
- ui::GpuService::Initialize(GetMojoShellConnection()->GetConnector());
+ ui::GpuService::Initialize(GetMojoShellConnection()->GetConnector());
#endif
InitializeWebKit(resource_task_queue);
@@ -1804,7 +1803,7 @@
gpu_memory_buffer_manager());
} else {
#if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
- gpu_channel_ = gpu_service_->EstablishGpuChannelSync();
+ gpu_channel_ = ui::GpuService::GetInstance()->EstablishGpuChannelSync();
#else
NOTREACHED();
#endif
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | services/ui/common/gpu_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698