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 CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 class PreemptionFlag; | 38 class PreemptionFlag; |
39 class SyncPointManager; | 39 class SyncPointManager; |
40 union ValueState; | 40 union ValueState; |
41 class ValueStateMap; | 41 class ValueStateMap; |
42 namespace gles2 { | 42 namespace gles2 { |
43 class SubscriptionRefSet; | 43 class SubscriptionRefSet; |
44 } | 44 } |
45 } | 45 } |
46 | 46 |
47 namespace IPC { | 47 namespace IPC { |
48 class AttachmentBroker; | |
49 class MessageFilter; | 48 class MessageFilter; |
50 } | 49 } |
51 | 50 |
52 namespace content { | 51 namespace content { |
53 class GpuChannelManager; | 52 class GpuChannelManager; |
54 class GpuChannelMessageFilter; | 53 class GpuChannelMessageFilter; |
55 class GpuChannelMessageQueue; | 54 class GpuChannelMessageQueue; |
56 class GpuJpegDecodeAccelerator; | 55 class GpuJpegDecodeAccelerator; |
57 class GpuWatchdog; | 56 class GpuWatchdog; |
58 | 57 |
(...skipping 13 matching lines...) Expand all Loading... |
72 base::SingleThreadTaskRunner* io_task_runner, | 71 base::SingleThreadTaskRunner* io_task_runner, |
73 int client_id, | 72 int client_id, |
74 uint64_t client_tracing_id, | 73 uint64_t client_tracing_id, |
75 bool software, | 74 bool software, |
76 bool allow_future_sync_points, | 75 bool allow_future_sync_points, |
77 bool allow_real_time_streams); | 76 bool allow_real_time_streams); |
78 ~GpuChannel() override; | 77 ~GpuChannel() override; |
79 | 78 |
80 // Initializes the IPC channel. Caller takes ownership of the client FD in | 79 // Initializes the IPC channel. Caller takes ownership of the client FD in |
81 // the returned handle and is responsible for closing it. | 80 // the returned handle and is responsible for closing it. |
82 virtual IPC::ChannelHandle Init(base::WaitableEvent* shutdown_event, | 81 virtual IPC::ChannelHandle Init(base::WaitableEvent* shutdown_event); |
83 IPC::AttachmentBroker* attachment_broker); | |
84 | 82 |
85 // Get the GpuChannelManager that owns this channel. | 83 // Get the GpuChannelManager that owns this channel. |
86 GpuChannelManager* gpu_channel_manager() const { | 84 GpuChannelManager* gpu_channel_manager() const { |
87 return gpu_channel_manager_; | 85 return gpu_channel_manager_; |
88 } | 86 } |
89 | 87 |
90 const std::string& channel_id() const { return channel_id_; } | 88 const std::string& channel_id() const { return channel_id_; } |
91 | 89 |
92 virtual base::ProcessId GetClientPID() const; | 90 virtual base::ProcessId GetClientPID() const; |
93 | 91 |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 // True if this channel can create future sync points. | 391 // True if this channel can create future sync points. |
394 bool future_sync_points_; | 392 bool future_sync_points_; |
395 | 393 |
396 // This number is only ever incremented/read on the IO thread. | 394 // This number is only ever incremented/read on the IO thread. |
397 static uint32_t global_order_counter_; | 395 static uint32_t global_order_counter_; |
398 }; | 396 }; |
399 | 397 |
400 } // namespace content | 398 } // namespace content |
401 | 399 |
402 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 400 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
OLD | NEW |