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

Unified Diff: content/renderer/mus/render_widget_mus_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 | « content/renderer/mus/render_widget_mus_connection.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/mus/render_widget_mus_connection.cc
diff --git a/content/renderer/mus/render_widget_mus_connection.cc b/content/renderer/mus/render_widget_mus_connection.cc
index ad68c21022ff89be5b3b6fd1bb7d2e07934a0d1f..2cf5555b483f7515f3aaf6283ad127b79dccbddd 100644
--- a/content/renderer/mus/render_widget_mus_connection.cc
+++ b/content/renderer/mus/render_widget_mus_connection.cc
@@ -40,12 +40,12 @@ void RenderWidgetMusConnection::Bind(
}
std::unique_ptr<cc::OutputSurface>
-RenderWidgetMusConnection::CreateOutputSurface() {
+RenderWidgetMusConnection::CreateOutputSurface(ui::GpuService* gpu_service) {
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK(!window_surface_binding_);
std::unique_ptr<cc::OutputSurface> surface(new ui::OutputSurface(
- ui::WindowSurface::Create(&window_surface_binding_)));
+ gpu_service, ui::WindowSurface::Create(&window_surface_binding_)));
if (compositor_mus_connection_) {
compositor_mus_connection_->AttachSurfaceOnMainThread(
std::move(window_surface_binding_));
« no previous file with comments | « content/renderer/mus/render_widget_mus_connection.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698