OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SERVICES_UI_WS_GPU_SERVICE_PROXY_H_ | 5 #ifndef SERVICES_UI_WS_GPU_SERVICE_PROXY_H_ |
6 #define SERVICES_UI_WS_GPU_SERVICE_PROXY_H_ | 6 #define SERVICES_UI_WS_GPU_SERVICE_PROXY_H_ |
7 | 7 |
8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
9 #include "base/synchronization/waitable_event.h" | 9 #include "base/synchronization/waitable_event.h" |
10 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
11 #include "gpu/config/gpu_info.h" | 11 #include "gpu/config/gpu_info.h" |
12 #include "gpu/ipc/client/gpu_channel_host.h" | 12 #include "gpu/ipc/client/gpu_channel_host.h" |
13 #include "mojo/public/cpp/bindings/binding_set.h" | 13 #include "mojo/public/cpp/bindings/binding_set.h" |
14 #include "mojo/public/cpp/bindings/interface_request.h" | 14 #include "mojo/public/cpp/bindings/interface_request.h" |
| 15 #include "services/ui/gpu/gpu_main.h" |
15 #include "services/ui/gpu/interfaces/gpu_service_internal.mojom.h" | 16 #include "services/ui/gpu/interfaces/gpu_service_internal.mojom.h" |
16 #include "services/ui/public/interfaces/gpu_memory_buffer.mojom.h" | 17 #include "services/ui/public/interfaces/gpu_memory_buffer.mojom.h" |
17 #include "services/ui/public/interfaces/gpu_service.mojom.h" | 18 #include "services/ui/public/interfaces/gpu_service.mojom.h" |
18 | 19 |
19 namespace gpu { | 20 namespace gpu { |
20 class GpuChannelHost; | 21 class GpuChannelHost; |
21 } | 22 } |
22 | 23 |
23 namespace ui { | 24 namespace ui { |
24 | 25 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 GpuServiceProxyDelegate* delegate_; | 71 GpuServiceProxyDelegate* delegate_; |
71 int32_t next_client_id_; | 72 int32_t next_client_id_; |
72 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 73 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
73 mojom::GpuServiceInternalPtr gpu_service_; | 74 mojom::GpuServiceInternalPtr gpu_service_; |
74 mojo::BindingSet<mojom::GpuService> bindings_; | 75 mojo::BindingSet<mojom::GpuService> bindings_; |
75 gpu::GPUInfo gpu_info_; | 76 gpu::GPUInfo gpu_info_; |
76 scoped_refptr<gpu::GpuChannelHost> gpu_channel_; | 77 scoped_refptr<gpu::GpuChannelHost> gpu_channel_; |
77 base::WaitableEvent shutdown_event_; | 78 base::WaitableEvent shutdown_event_; |
78 std::unique_ptr<base::Thread> io_thread_; | 79 std::unique_ptr<base::Thread> io_thread_; |
79 std::unique_ptr<MusGpuMemoryBufferManager> gpu_memory_buffer_manager_; | 80 std::unique_ptr<MusGpuMemoryBufferManager> gpu_memory_buffer_manager_; |
| 81 GpuMain gpu_main_; |
80 | 82 |
81 DISALLOW_COPY_AND_ASSIGN(GpuServiceProxy); | 83 DISALLOW_COPY_AND_ASSIGN(GpuServiceProxy); |
82 }; | 84 }; |
83 | 85 |
84 } // namespace ws | 86 } // namespace ws |
85 } // namespace ui | 87 } // namespace ui |
86 | 88 |
87 #endif // SERVICES_UI_WS_GPU_SERVICE_PROXY_H_ | 89 #endif // SERVICES_UI_WS_GPU_SERVICE_PROXY_H_ |
OLD | NEW |