OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <queue> | 9 #include <queue> |
10 #include <set> | 10 #include <set> |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 #if defined(OS_POSIX) | 67 #if defined(OS_POSIX) |
68 int GetRendererFileDescriptor(); | 68 int GetRendererFileDescriptor(); |
69 #endif // defined(OS_POSIX) | 69 #endif // defined(OS_POSIX) |
70 | 70 |
71 base::ProcessHandle renderer_process() const { | 71 base::ProcessHandle renderer_process() const { |
72 return renderer_process_; | 72 return renderer_process_; |
73 } | 73 } |
74 | 74 |
75 // IPC::Channel::Listener implementation: | 75 // IPC::Channel::Listener implementation: |
76 virtual bool OnMessageReceived(const IPC::Message& msg); | 76 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
77 virtual void OnChannelError(); | 77 virtual void OnChannelError() OVERRIDE; |
78 virtual void OnChannelConnected(int32 peer_pid); | 78 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
79 | 79 |
80 // IPC::Message::Sender implementation: | 80 // IPC::Message::Sender implementation: |
81 virtual bool Send(IPC::Message* msg); | 81 virtual bool Send(IPC::Message* msg); |
82 | 82 |
83 // Whether this channel is able to handle IPC messages. | 83 // Whether this channel is able to handle IPC messages. |
84 bool IsScheduled(); | 84 bool IsScheduled(); |
85 | 85 |
86 // This is called when a command buffer transitions from the unscheduled | 86 // This is called when a command buffer transitions from the unscheduled |
87 // state to the scheduled state, which potentially means the channel | 87 // state to the scheduled state, which potentially means the channel |
88 // transitions from the unscheduled to the scheduled state. When this occurs | 88 // transitions from the unscheduled to the scheduled state. When this occurs |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 gpu::gles2::DisallowedExtensions disallowed_extensions_; | 186 gpu::gles2::DisallowedExtensions disallowed_extensions_; |
187 GpuWatchdog* watchdog_; | 187 GpuWatchdog* watchdog_; |
188 bool software_; | 188 bool software_; |
189 | 189 |
190 ScopedRunnableMethodFactory<GpuChannel> task_factory_; | 190 ScopedRunnableMethodFactory<GpuChannel> task_factory_; |
191 | 191 |
192 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 192 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
193 }; | 193 }; |
194 | 194 |
195 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 195 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
OLD | NEW |