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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 return gpu_channel_manager_; | 69 return gpu_channel_manager_; |
70 } | 70 } |
71 | 71 |
72 // Returns the name of the associated IPC channel. | 72 // Returns the name of the associated IPC channel. |
73 std::string GetChannelName(); | 73 std::string GetChannelName(); |
74 | 74 |
75 #if defined(OS_POSIX) | 75 #if defined(OS_POSIX) |
76 int TakeRendererFileDescriptor(); | 76 int TakeRendererFileDescriptor(); |
77 #endif // defined(OS_POSIX) | 77 #endif // defined(OS_POSIX) |
78 | 78 |
79 base::ProcessId renderer_pid() const { return channel_->peer_pid(); } | 79 base::ProcessId renderer_pid() const { return channel_->GetPeerPID(); } |
80 | 80 |
81 int client_id() const { return client_id_; } | 81 int client_id() const { return client_id_; } |
82 | 82 |
83 scoped_refptr<base::MessageLoopProxy> io_message_loop() const { | 83 scoped_refptr<base::MessageLoopProxy> io_message_loop() const { |
84 return io_message_loop_; | 84 return io_message_loop_; |
85 } | 85 } |
86 | 86 |
87 // IPC::Listener implementation: | 87 // IPC::Listener implementation: |
88 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 88 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
89 virtual void OnChannelError() OVERRIDE; | 89 virtual void OnChannelError() OVERRIDE; |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 scoped_ptr<DevToolsGpuAgent> devtools_gpu_agent_; | 224 scoped_ptr<DevToolsGpuAgent> devtools_gpu_agent_; |
225 | 225 |
226 size_t num_stubs_descheduled_; | 226 size_t num_stubs_descheduled_; |
227 | 227 |
228 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 228 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
229 }; | 229 }; |
230 | 230 |
231 } // namespace content | 231 } // namespace content |
232 | 232 |
233 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 233 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
OLD | NEW |