| 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 <deque> | 9 #include <deque> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 base::ProcessHandle renderer_process() const { | 63 base::ProcessHandle renderer_process() const { |
| 64 return renderer_process_; | 64 return renderer_process_; |
| 65 } | 65 } |
| 66 | 66 |
| 67 // IPC::Channel::Listener implementation: | 67 // IPC::Channel::Listener implementation: |
| 68 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 68 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 69 virtual void OnChannelError() OVERRIDE; | 69 virtual void OnChannelError() OVERRIDE; |
| 70 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 70 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
| 71 | 71 |
| 72 // IPC::Message::Sender implementation: | 72 // IPC::Message::Sender implementation: |
| 73 virtual bool Send(IPC::Message* msg); | 73 virtual bool Send(IPC::Message* msg) OVERRIDE; |
| 74 | 74 |
| 75 // Whether this channel is able to handle IPC messages. | 75 // Whether this channel is able to handle IPC messages. |
| 76 bool IsScheduled(); | 76 bool IsScheduled(); |
| 77 | 77 |
| 78 // This is called when a command buffer transitions from the unscheduled | 78 // This is called when a command buffer transitions from the unscheduled |
| 79 // state to the scheduled state, which potentially means the channel | 79 // state to the scheduled state, which potentially means the channel |
| 80 // transitions from the unscheduled to the scheduled state. When this occurs | 80 // transitions from the unscheduled to the scheduled state. When this occurs |
| 81 // deferred IPC messaged are handled. | 81 // deferred IPC messaged are handled. |
| 82 void OnScheduled(); | 82 void OnScheduled(); |
| 83 | 83 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 bool handle_messages_scheduled_; | 184 bool handle_messages_scheduled_; |
| 185 bool processed_get_state_fast_; | 185 bool processed_get_state_fast_; |
| 186 int32 num_contexts_preferring_discrete_gpu_; | 186 int32 num_contexts_preferring_discrete_gpu_; |
| 187 | 187 |
| 188 ScopedRunnableMethodFactory<GpuChannel> task_factory_; | 188 ScopedRunnableMethodFactory<GpuChannel> task_factory_; |
| 189 | 189 |
| 190 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 190 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
| 191 }; | 191 }; |
| 192 | 192 |
| 193 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 193 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
| OLD | NEW |