| 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 COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_ | 5 #ifndef COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_ |
| 6 #define COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_ | 6 #define COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/synchronization/waitable_event.h" | 9 #include "base/synchronization/waitable_event.h" |
| 10 #include "base/threading/non_thread_safe.h" | 10 #include "base/threading/non_thread_safe.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 void EstablishGpuChannelOnGpuThread(int client_id, | 127 void EstablishGpuChannelOnGpuThread(int client_id, |
| 128 uint64_t client_tracing_id, | 128 uint64_t client_tracing_id, |
| 129 bool preempts, | 129 bool preempts, |
| 130 bool allow_view_command_buffers, | 130 bool allow_view_command_buffers, |
| 131 bool allow_real_time_streams, | 131 bool allow_real_time_streams, |
| 132 IPC::ChannelHandle* channel_handle); | 132 IPC::ChannelHandle* channel_handle); |
| 133 | 133 |
| 134 // The next client id. | 134 // The next client id. |
| 135 int next_client_id_; | 135 int next_client_id_; |
| 136 | 136 |
| 137 // The main thread message loop. | 137 // The main thread task runner. |
| 138 base::MessageLoop* main_message_loop_; | 138 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
| 139 | 139 |
| 140 // An event that will be signalled when we shutdown. | 140 // An event that will be signalled when we shutdown. |
| 141 base::WaitableEvent shutdown_event_; | 141 base::WaitableEvent shutdown_event_; |
| 142 | 142 |
| 143 // The main thread for GpuService. | 143 // The main thread for GpuService. |
| 144 base::Thread gpu_thread_; | 144 base::Thread gpu_thread_; |
| 145 | 145 |
| 146 // The thread that handles IO events for GpuService. | 146 // The thread that handles IO events for GpuService. |
| 147 base::Thread io_thread_; | 147 base::Thread io_thread_; |
| 148 | 148 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 164 | 164 |
| 165 // Information about the GPU, such as device and vendor ID. | 165 // Information about the GPU, such as device and vendor ID. |
| 166 gpu::GPUInfo gpu_info_; | 166 gpu::GPUInfo gpu_info_; |
| 167 | 167 |
| 168 DISALLOW_COPY_AND_ASSIGN(GpuServiceMus); | 168 DISALLOW_COPY_AND_ASSIGN(GpuServiceMus); |
| 169 }; | 169 }; |
| 170 | 170 |
| 171 } // namespace mus | 171 } // namespace mus |
| 172 | 172 |
| 173 #endif // COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_ | 173 #endif // COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_ |
| OLD | NEW |