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

Unified Diff: services/ui/public/cpp/context_provider.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/bitmap_uploader.cc ('k') | services/ui/public/cpp/context_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/context_provider.h
diff --git a/services/ui/public/cpp/context_provider.h b/services/ui/public/cpp/context_provider.h
index f17131ed8958252c82a83bb177783e6fe35f57fc..35c31511b4537b20241216520cab894a301c20b6 100644
--- a/services/ui/public/cpp/context_provider.h
+++ b/services/ui/public/cpp/context_provider.h
@@ -21,10 +21,11 @@ class Connector;
namespace ui {
class GLES2Context;
+class GpuService;
class ContextProvider : public cc::ContextProvider {
public:
- ContextProvider();
+ explicit ContextProvider(GpuService* gpu_service);
// cc::ContextProvider implementation.
bool BindToCurrentThread() override;
@@ -44,6 +45,7 @@ class ContextProvider : public cc::ContextProvider {
private:
std::unique_ptr<GLES2Context> context_;
+ GpuService* gpu_service_;
DISALLOW_COPY_AND_ASSIGN(ContextProvider);
};
« no previous file with comments | « services/ui/public/cpp/bitmap_uploader.cc ('k') | services/ui/public/cpp/context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698