summaryrefslogtreecommitdiffstats
path: root/mojo/services/gles2/gpu_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'mojo/services/gles2/gpu_impl.h')
-rw-r--r--mojo/services/gles2/gpu_impl.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/mojo/services/gles2/gpu_impl.h b/mojo/services/gles2/gpu_impl.h
new file mode 100644
index 0000000..3e50a9a
--- /dev/null
+++ b/mojo/services/gles2/gpu_impl.h
@@ -0,0 +1,49 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SERVICES_GLES2_GPU_IMPL_H_
+#define SERVICES_GLES2_GPU_IMPL_H_
+
+#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+#include "base/threading/thread.h"
+#include "mojo/services/gles2/gpu_state.h"
+#include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h"
+#include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
+#include "third_party/mojo_services/src/geometry/public/interfaces/geometry.mojom.h"
+#include "third_party/mojo_services/src/gpu/public/interfaces/command_buffer.mojom.h"
+#include "third_party/mojo_services/src/gpu/public/interfaces/gpu.mojom.h"
+
+namespace gfx {
+class GLShareGroup;
+}
+
+namespace gpu {
+class SyncPointManager;
+namespace gles2 {
+class MailboxManager;
+}
+}
+
+namespace gles2 {
+
+class GpuImpl : public mojo::Gpu {
+ public:
+ GpuImpl(mojo::InterfaceRequest<mojo::Gpu> request,
+ const scoped_refptr<GpuState>& state);
+ ~GpuImpl() override;
+
+ private:
+ void CreateOffscreenGLES2Context(mojo::InterfaceRequest<mojo::CommandBuffer>
+ command_buffer_request) override;
+
+ mojo::StrongBinding<Gpu> binding_;
+ scoped_refptr<GpuState> state_;
+
+ DISALLOW_COPY_AND_ASSIGN(GpuImpl);
+};
+
+} // namespace gles2
+
+#endif // SERVICES_GLES2_GPU_IMPL_H_