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

Unified Diff: components/mus/public/cpp/gles2_context.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: Update Created 4 years, 7 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
Index: components/mus/public/cpp/gles2_context.h
diff --git a/components/mus/public/cpp/gles2_context.h b/components/mus/public/cpp/gles2_context.h
index 805e667506d41dcd76046d87cb78f0027ee9ab4e..da81e95536c86e95b1524d7444ca1ec4602eac30 100644
--- a/components/mus/public/cpp/gles2_context.h
+++ b/components/mus/public/cpp/gles2_context.h
@@ -11,23 +11,26 @@
#include <vector>
#include "base/macros.h"
-#include "components/mus/public/cpp/lib/command_buffer_client_impl.h"
+#include "components/mus/public/cpp/mus_public_export.h"
#include "gpu/command_buffer/client/gles2_implementation.h"
#include "mojo/public/c/gles2/gles2.h"
+#include "mojo/public/cpp/bindings/binding.h"
struct MojoGLES2ContextPrivate {};
namespace gpu {
+class CommandBufferProxyImpl;
class TransferBuffer;
namespace gles2 {
class GLES2CmdHelper;
-class GLES2Implementation;
}
}
namespace mus {
-class GLES2Context : public MojoGLES2ContextPrivate {
+class CommandBufferClientImpl;
+
+class MUS_PUBLIC_EXPORT GLES2Context : public MojoGLES2ContextPrivate {
public:
explicit GLES2Context(const std::vector<int32_t>& attribs,
mojo::ScopedMessagePipeHandle command_buffer_handle,
@@ -44,7 +47,8 @@ class GLES2Context : public MojoGLES2ContextPrivate {
private:
void OnLostContext();
- CommandBufferClientImpl command_buffer_;
+ std::unique_ptr<CommandBufferClientImpl> command_buffer_client_impl_;
+ std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_proxy_impl_;
std::unique_ptr<gpu::gles2::GLES2CmdHelper> gles2_helper_;
std::unique_ptr<gpu::TransferBuffer> transfer_buffer_;
std::unique_ptr<gpu::gles2::GLES2Implementation> implementation_;

Powered by Google App Engine
This is Rietveld 408576698