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

Unified Diff: components/mus/public/cpp/context_provider.h

Issue 1976703003: Impl mus::mojom::GpuService to enable using Chrome IPC version gpu CmdBuf in mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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 | « components/mus/public/cpp/BUILD.gn ('k') | components/mus/public/cpp/gles2_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/context_provider.h
diff --git a/components/mus/public/cpp/context_provider.h b/components/mus/public/cpp/context_provider.h
index 78d701bf8a327e9734f5181c24e81055d68bd542..f16366e05c2b3b6e32b8aba2b88cbf4a9bbc0156 100644
--- a/components/mus/public/cpp/context_provider.h
+++ b/components/mus/public/cpp/context_provider.h
@@ -11,15 +11,20 @@
#include "base/macros.h"
#include "cc/output/context_provider.h"
+#include "components/mus/public/interfaces/command_buffer.mojom.h"
#include "mojo/public/cpp/system/core.h"
+namespace shell {
+class Connector;
+}
+
namespace mus {
class GLES2Context;
class ContextProvider : public cc::ContextProvider {
public:
- explicit ContextProvider(mojo::ScopedMessagePipeHandle command_buffer_handle);
+ explicit ContextProvider(shell::Connector* connector);
// cc::ContextProvider implementation.
bool BindToCurrentThread() override;
@@ -38,7 +43,7 @@ class ContextProvider : public cc::ContextProvider {
~ContextProvider() override;
private:
- mojo::ScopedMessagePipeHandle command_buffer_handle_;
+ std::unique_ptr<shell::Connector> connector_;
std::unique_ptr<GLES2Context> context_;
DISALLOW_COPY_AND_ASSIGN(ContextProvider);
« no previous file with comments | « components/mus/public/cpp/BUILD.gn ('k') | components/mus/public/cpp/gles2_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698