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

Unified Diff: services/ui/public/cpp/gles2_context.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/context_provider.cc ('k') | services/ui/public/cpp/gles2_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/gles2_context.h
diff --git a/services/ui/public/cpp/gles2_context.h b/services/ui/public/cpp/gles2_context.h
index d26499d7494bd5ca61eef01229721555d81ea002..a4e56035352544f96864524bf6a5264aff134b24 100644
--- a/services/ui/public/cpp/gles2_context.h
+++ b/services/ui/public/cpp/gles2_context.h
@@ -25,6 +25,7 @@ class GLES2CmdHelper;
namespace ui {
class CommandBufferClientImpl;
+class GpuService;
class GLES2Context {
public:
@@ -35,11 +36,11 @@ class GLES2Context {
gpu::ContextSupport* context_support() const { return implementation_.get(); }
static std::unique_ptr<GLES2Context> CreateOffscreenContext(
- const std::vector<int32_t>& attribs);
+ GpuService* gpu_service);
private:
GLES2Context();
- bool Initialize(const std::vector<int32_t>& attribs);
+ bool Initialize(GpuService* gpu_service);
std::unique_ptr<CommandBufferClientImpl> command_buffer_client_impl_;
std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_proxy_impl_;
« no previous file with comments | « services/ui/public/cpp/context_provider.cc ('k') | services/ui/public/cpp/gles2_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698