| 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 <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 namespace gpu { | 36 namespace gpu { |
| 37 class PreemptionFlag; | 37 class PreemptionFlag; |
| 38 union ValueState; | 38 union ValueState; |
| 39 class ValueStateMap; | 39 class ValueStateMap; |
| 40 namespace gles2 { | 40 namespace gles2 { |
| 41 class SubscriptionRefSet; | 41 class SubscriptionRefSet; |
| 42 } | 42 } |
| 43 } | 43 } |
| 44 | 44 |
| 45 namespace IPC { | 45 namespace IPC { |
| 46 class AttachmentBroker; | |
| 47 class MessageFilter; | 46 class MessageFilter; |
| 48 } | 47 } |
| 49 | 48 |
| 50 namespace content { | 49 namespace content { |
| 51 class GpuChannelManager; | 50 class GpuChannelManager; |
| 52 class GpuChannelMessageFilter; | 51 class GpuChannelMessageFilter; |
| 53 class GpuJpegDecodeAccelerator; | 52 class GpuJpegDecodeAccelerator; |
| 54 class GpuWatchdog; | 53 class GpuWatchdog; |
| 55 | 54 |
| 56 // Encapsulates an IPC channel between the GPU process and one renderer | 55 // Encapsulates an IPC channel between the GPU process and one renderer |
| (...skipping 11 matching lines...) Expand all Loading... |
| 68 base::SingleThreadTaskRunner* task_runner, | 67 base::SingleThreadTaskRunner* task_runner, |
| 69 base::SingleThreadTaskRunner* io_task_runner, | 68 base::SingleThreadTaskRunner* io_task_runner, |
| 70 int client_id, | 69 int client_id, |
| 71 uint64_t client_tracing_id, | 70 uint64_t client_tracing_id, |
| 72 bool software, | 71 bool software, |
| 73 bool allow_future_sync_points); | 72 bool allow_future_sync_points); |
| 74 ~GpuChannel() override; | 73 ~GpuChannel() override; |
| 75 | 74 |
| 76 // Initializes the IPC channel. Caller takes ownership of the client FD in | 75 // Initializes the IPC channel. Caller takes ownership of the client FD in |
| 77 // the returned handle and is responsible for closing it. | 76 // the returned handle and is responsible for closing it. |
| 78 virtual IPC::ChannelHandle Init(base::WaitableEvent* shutdown_event, | 77 virtual IPC::ChannelHandle Init(base::WaitableEvent* shutdown_event); |
| 79 IPC::AttachmentBroker* attachment_broker); | |
| 80 | 78 |
| 81 // Get the GpuChannelManager that owns this channel. | 79 // Get the GpuChannelManager that owns this channel. |
| 82 GpuChannelManager* gpu_channel_manager() const { | 80 GpuChannelManager* gpu_channel_manager() const { |
| 83 return gpu_channel_manager_; | 81 return gpu_channel_manager_; |
| 84 } | 82 } |
| 85 | 83 |
| 86 const std::string& channel_id() const { return channel_id_; } | 84 const std::string& channel_id() const { return channel_id_; } |
| 87 | 85 |
| 88 virtual base::ProcessId GetClientPID() const; | 86 virtual base::ProcessId GetClientPID() const; |
| 89 | 87 |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 // that any WeakPtrs to Controller are invalidated before its members | 262 // that any WeakPtrs to Controller are invalidated before its members |
| 265 // variable's destructors are executed, rendering them invalid. | 263 // variable's destructors are executed, rendering them invalid. |
| 266 base::WeakPtrFactory<GpuChannel> weak_factory_; | 264 base::WeakPtrFactory<GpuChannel> weak_factory_; |
| 267 | 265 |
| 268 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 266 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
| 269 }; | 267 }; |
| 270 | 268 |
| 271 } // namespace content | 269 } // namespace content |
| 272 | 270 |
| 273 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 271 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
| OLD | NEW |