OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ | 5 #ifndef GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ |
6 #define GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ | 6 #define GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <memory> | 11 #include <memory> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/atomic_sequence_num.h" | 15 #include "base/atomic_sequence_num.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
19 #include "base/process/process.h" | 19 #include "base/process/process.h" |
| 20 #include "base/single_thread_task_runner.h" |
20 #include "base/synchronization/lock.h" | 21 #include "base/synchronization/lock.h" |
21 #include "gpu/config/gpu_info.h" | 22 #include "gpu/config/gpu_info.h" |
22 #include "gpu/gpu_export.h" | 23 #include "gpu/gpu_export.h" |
23 #include "ipc/ipc_channel_handle.h" | 24 #include "ipc/ipc_channel_handle.h" |
24 #include "ipc/ipc_sync_channel.h" | 25 #include "ipc/ipc_sync_channel.h" |
25 #include "ipc/message_filter.h" | 26 #include "ipc/message_filter.h" |
26 #include "ipc/message_router.h" | 27 #include "ipc/message_router.h" |
27 #include "ui/gfx/gpu_memory_buffer.h" | 28 #include "ui/gfx/gpu_memory_buffer.h" |
28 #include "ui/latency/latency_info.h" | 29 #include "ui/latency/latency_info.h" |
29 | 30 |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 mutable base::Lock context_lock_; | 270 mutable base::Lock context_lock_; |
270 std::unique_ptr<IPC::SyncChannel> channel_; | 271 std::unique_ptr<IPC::SyncChannel> channel_; |
271 base::hash_map<int32_t, StreamFlushInfo> stream_flush_info_; | 272 base::hash_map<int32_t, StreamFlushInfo> stream_flush_info_; |
272 | 273 |
273 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); | 274 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); |
274 }; | 275 }; |
275 | 276 |
276 } // namespace gpu | 277 } // namespace gpu |
277 | 278 |
278 #endif // GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ | 279 #endif // GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ |
OLD | NEW |