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

Unified Diff: services/ui/public/cpp/output_surface.h

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/gles2_context.cc ('k') | services/ui/public/cpp/output_surface.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.h
diff --git a/services/ui/public/cpp/output_surface.h b/services/ui/public/cpp/output_surface.h
index fb38073b39625d9ecf0f81237d4150143d87c3b2..1d3c560410b0c87c281cf1be88121336c0d2f018 100644
--- a/services/ui/public/cpp/output_surface.h
+++ b/services/ui/public/cpp/output_surface.h
@@ -14,9 +14,12 @@
namespace ui {
+class GpuService;
+
class OutputSurface : public cc::OutputSurface, public WindowSurfaceClient {
public:
- explicit OutputSurface(std::unique_ptr<WindowSurface> surface);
+ OutputSurface(GpuService* gpu_service,
+ std::unique_ptr<WindowSurface> surface);
~OutputSurface() override;
// cc::OutputSurface implementation.
« no previous file with comments | « services/ui/public/cpp/gles2_context.cc ('k') | services/ui/public/cpp/output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698