| 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_UI_GLES2_GPU_IMPL_H_ | |
| 6 #define SERVICES_UI_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/public/cpp/bindings/interface_request.h" | |
| 12 #include "mojo/public/cpp/bindings/strong_binding.h" | |
| 13 #include "services/ui/gles2/gpu_state.h" | |
| 14 #include "services/ui/public/interfaces/command_buffer.mojom.h" | |
| 15 #include "services/ui/public/interfaces/gpu.mojom.h" | |
| 16 #include "ui/gfx/geometry/mojo/geometry.mojom.h" | |
| 17 | |
| 18 namespace ui { | |
| 19 | |
| 20 class GpuImpl : public mojom::Gpu { | |
| 21 public: | |
| 22 GpuImpl(mojo::InterfaceRequest<mojom::Gpu> request, | |
| 23 const scoped_refptr<GpuState>& state); | |
| 24 ~GpuImpl() override; | |
| 25 | |
| 26 private: | |
| 27 void CreateOffscreenGLES2Context(mojo::InterfaceRequest<mojom::CommandBuffer> | |
| 28 command_buffer_request) override; | |
| 29 void GetGpuInfo(const GetGpuInfoCallback& callback) override; | |
| 30 | |
| 31 mojo::StrongBinding<Gpu> binding_; | |
| 32 scoped_refptr<GpuState> state_; | |
| 33 | |
| 34 DISALLOW_COPY_AND_ASSIGN(GpuImpl); | |
| 35 }; | |
| 36 | |
| 37 } // namespace ui | |
| 38 | |
| 39 #endif // SERVICES_UI_GLES2_GPU_IMPL_H_ | |
| OLD | NEW |