| 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_HOST_H_ | 5 #ifndef SERVICES_UI_WS_GPU_HOST_H_ |
| 6 #define SERVICES_UI_WS_GPU_HOST_H_ | 6 #define SERVICES_UI_WS_GPU_HOST_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" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 void RecordLogMessage(int32_t severity, | 88 void RecordLogMessage(int32_t severity, |
| 89 const std::string& header, | 89 const std::string& header, |
| 90 const std::string& message) override; | 90 const std::string& message) override; |
| 91 | 91 |
| 92 GpuHostDelegate* const delegate_; | 92 GpuHostDelegate* const delegate_; |
| 93 int32_t next_client_id_; | 93 int32_t next_client_id_; |
| 94 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 94 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
| 95 mojom::GpuServicePtr gpu_service_; | 95 mojom::GpuServicePtr gpu_service_; |
| 96 mojo::Binding<mojom::GpuHost> gpu_host_binding_; | 96 mojo::Binding<mojom::GpuHost> gpu_host_binding_; |
| 97 gpu::GPUInfo gpu_info_; | 97 gpu::GPUInfo gpu_info_; |
| 98 std::unique_ptr<viz::ServerGpuMemoryBufferManager> gpu_memory_buffer_manager_; | 98 scoped_refptr<viz::ServerGpuMemoryBufferManager> gpu_memory_buffer_manager_; |
| 99 | 99 |
| 100 mojom::GpuMainPtr gpu_main_; | 100 mojom::GpuMainPtr gpu_main_; |
| 101 | 101 |
| 102 // TODO(fsamuel): GpuHost should not be holding onto |gpu_main_impl| | 102 // TODO(fsamuel): GpuHost should not be holding onto |gpu_main_impl| |
| 103 // because that will live in another process soon. | 103 // because that will live in another process soon. |
| 104 std::unique_ptr<GpuMain> gpu_main_impl_; | 104 std::unique_ptr<GpuMain> gpu_main_impl_; |
| 105 | 105 |
| 106 mojo::StrongBindingSet<mojom::Gpu> gpu_bindings_; | 106 mojo::StrongBindingSet<mojom::Gpu> gpu_bindings_; |
| 107 | 107 |
| 108 DISALLOW_COPY_AND_ASSIGN(DefaultGpuHost); | 108 DISALLOW_COPY_AND_ASSIGN(DefaultGpuHost); |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 } // namespace ws | 111 } // namespace ws |
| 112 } // namespace ui | 112 } // namespace ui |
| 113 | 113 |
| 114 #endif // SERVICES_UI_WS_GPU_HOST_H_ | 114 #endif // SERVICES_UI_WS_GPU_HOST_H_ |
| OLD | NEW |