OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SERVICES_GLES2_GPU_IMPL_H_ |
| 6 #define SERVICES_GLES2_GPU_IMPL_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/threading/thread.h" |
| 11 #include "mojo/services/gles2/gpu_state.h" |
| 12 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h" |
| 13 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" |
| 14 #include "third_party/mojo_services/src/geometry/public/interfaces/geometry.mojo
m.h" |
| 15 #include "third_party/mojo_services/src/gpu/public/interfaces/command_buffer.moj
om.h" |
| 16 #include "third_party/mojo_services/src/gpu/public/interfaces/gpu.mojom.h" |
| 17 |
| 18 namespace gfx { |
| 19 class GLShareGroup; |
| 20 } |
| 21 |
| 22 namespace gpu { |
| 23 class SyncPointManager; |
| 24 namespace gles2 { |
| 25 class MailboxManager; |
| 26 } |
| 27 } |
| 28 |
| 29 namespace gles2 { |
| 30 |
| 31 class GpuImpl : public mojo::Gpu { |
| 32 public: |
| 33 GpuImpl(mojo::InterfaceRequest<mojo::Gpu> request, |
| 34 const scoped_refptr<GpuState>& state); |
| 35 ~GpuImpl() override; |
| 36 |
| 37 private: |
| 38 void CreateOffscreenGLES2Context(mojo::InterfaceRequest<mojo::CommandBuffer> |
| 39 command_buffer_request) override; |
| 40 |
| 41 mojo::StrongBinding<Gpu> binding_; |
| 42 scoped_refptr<GpuState> state_; |
| 43 |
| 44 DISALLOW_COPY_AND_ASSIGN(GpuImpl); |
| 45 }; |
| 46 |
| 47 } // namespace gles2 |
| 48 |
| 49 #endif // SERVICES_GLES2_GPU_IMPL_H_ |
OLD | NEW |