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" | |
16 #include "services/ui/gpu/interfaces/gpu_service_internal.mojom.h" | 15 #include "services/ui/gpu/interfaces/gpu_service_internal.mojom.h" |
17 #include "services/ui/public/interfaces/gpu_memory_buffer.mojom.h" | 16 #include "services/ui/public/interfaces/gpu_memory_buffer.mojom.h" |
18 #include "services/ui/public/interfaces/gpu_service.mojom.h" | 17 #include "services/ui/public/interfaces/gpu_service.mojom.h" |
19 | 18 |
20 namespace gpu { | 19 namespace gpu { |
21 class GpuChannelHost; | 20 class GpuChannelHost; |
22 } | 21 } |
23 | 22 |
24 namespace ui { | 23 namespace ui { |
25 | 24 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 GpuServiceProxyDelegate* delegate_; | 70 GpuServiceProxyDelegate* delegate_; |
72 int32_t next_client_id_; | 71 int32_t next_client_id_; |
73 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 72 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
74 mojom::GpuServiceInternalPtr gpu_service_; | 73 mojom::GpuServiceInternalPtr gpu_service_; |
75 mojo::BindingSet<mojom::GpuService> bindings_; | 74 mojo::BindingSet<mojom::GpuService> bindings_; |
76 gpu::GPUInfo gpu_info_; | 75 gpu::GPUInfo gpu_info_; |
77 scoped_refptr<gpu::GpuChannelHost> gpu_channel_; | 76 scoped_refptr<gpu::GpuChannelHost> gpu_channel_; |
78 base::WaitableEvent shutdown_event_; | 77 base::WaitableEvent shutdown_event_; |
79 std::unique_ptr<base::Thread> io_thread_; | 78 std::unique_ptr<base::Thread> io_thread_; |
80 std::unique_ptr<MusGpuMemoryBufferManager> gpu_memory_buffer_manager_; | 79 std::unique_ptr<MusGpuMemoryBufferManager> gpu_memory_buffer_manager_; |
81 GpuMain gpu_main_; | |
82 | 80 |
83 DISALLOW_COPY_AND_ASSIGN(GpuServiceProxy); | 81 DISALLOW_COPY_AND_ASSIGN(GpuServiceProxy); |
84 }; | 82 }; |
85 | 83 |
86 } // namespace ws | 84 } // namespace ws |
87 } // namespace ui | 85 } // namespace ui |
88 | 86 |
89 #endif // SERVICES_UI_WS_GPU_SERVICE_PROXY_H_ | 87 #endif // SERVICES_UI_WS_GPU_SERVICE_PROXY_H_ |
OLD | NEW |