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

Unified Diff: services/ui/public/cpp/output_surface.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 | « services/ui/public/cpp/output_surface.h ('k') | ui/views/mus/native_widget_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/output_surface.cc
diff --git a/services/ui/public/cpp/output_surface.cc b/services/ui/public/cpp/output_surface.cc
index 5b96e91c054d40687ec3a4096ce2bcd3c247801d..ed236960c10d6f4935320075bfb974501dc2f208 100644
--- a/services/ui/public/cpp/output_surface.cc
+++ b/services/ui/public/cpp/output_surface.cc
@@ -12,8 +12,9 @@
namespace ui {
-OutputSurface::OutputSurface(std::unique_ptr<ui::WindowSurface> surface)
- : cc::OutputSurface(make_scoped_refptr(new ContextProvider()),
+OutputSurface::OutputSurface(GpuService* gpu_service,
+ std::unique_ptr<ui::WindowSurface> surface)
+ : cc::OutputSurface(make_scoped_refptr(new ContextProvider(gpu_service)),
nullptr,
nullptr),
surface_(std::move(surface)) {
« no previous file with comments | « services/ui/public/cpp/output_surface.h ('k') | ui/views/mus/native_widget_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698