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

Unified Diff: ui/views/mus/surface_context_factory.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 | « ui/views/mus/native_widget_mus.cc ('k') | ui/views/mus/surface_context_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/surface_context_factory.h
diff --git a/ui/views/mus/surface_context_factory.h b/ui/views/mus/surface_context_factory.h
index 442c39e32af7086fb635dfb74101fed61976ae68..448c3dc78bfda8e6cb845bc1e5a214727c9167b9 100644
--- a/ui/views/mus/surface_context_factory.h
+++ b/ui/views/mus/surface_context_factory.h
@@ -14,11 +14,15 @@
#include "ui/compositor/compositor.h"
#include "ui/views/mus/mus_export.h"
+namespace ui {
+class GpuService;
+}
+
namespace views {
class VIEWS_MUS_EXPORT SurfaceContextFactory : public ui::ContextFactory {
public:
- SurfaceContextFactory();
+ explicit SurfaceContextFactory(ui::GpuService* gpu_service);
~SurfaceContextFactory() override;
private:
@@ -54,6 +58,7 @@ class VIEWS_MUS_EXPORT SurfaceContextFactory : public ui::ContextFactory {
uint32_t next_surface_id_namespace_;
ui::RasterThreadHelper raster_thread_helper_;
ui::MojoGpuMemoryBufferManager gpu_memory_buffer_manager_;
+ ui::GpuService* gpu_service_;
DISALLOW_COPY_AND_ASSIGN(SurfaceContextFactory);
};
« no previous file with comments | « ui/views/mus/native_widget_mus.cc ('k') | ui/views/mus/surface_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698