| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 // Destroy channel and all contained contexts. | 131 // Destroy channel and all contained contexts. |
| 132 void DestroySoon(); | 132 void DestroySoon(); |
| 133 | 133 |
| 134 // Generate a route ID guaranteed to be unique for this channel. | 134 // Generate a route ID guaranteed to be unique for this channel. |
| 135 int GenerateRouteID(); | 135 int GenerateRouteID(); |
| 136 | 136 |
| 137 // Called to add/remove a listener for a particular message routing ID. | 137 // Called to add/remove a listener for a particular message routing ID. |
| 138 void AddRoute(int32 route_id, IPC::Listener* listener); | 138 void AddRoute(int32 route_id, IPC::Listener* listener); |
| 139 void RemoveRoute(int32 route_id); | 139 void RemoveRoute(int32 route_id); |
| 140 void AddMessageFilterRoute(int32 route_id, IPC::Listener* listener); |
| 141 void RemoveMessageFilterRoute(int32 route_id); |
| 140 | 142 |
| 141 gpu::PreemptionFlag* GetPreemptionFlag(); | 143 gpu::PreemptionFlag* GetPreemptionFlag(); |
| 142 | 144 |
| 143 bool handle_messages_scheduled() const { return handle_messages_scheduled_; } | 145 bool handle_messages_scheduled() const { return handle_messages_scheduled_; } |
| 144 uint64 messages_processed() const { return messages_processed_; } | 146 uint64 messages_processed() const { return messages_processed_; } |
| 145 | 147 |
| 146 // If |preemption_flag->IsSet()|, any stub on this channel | 148 // If |preemption_flag->IsSet()|, any stub on this channel |
| 147 // should stop issuing GL commands. Setting this to NULL stops deferral. | 149 // should stop issuing GL commands. Setting this to NULL stops deferral. |
| 148 void SetPreemptByFlag( | 150 void SetPreemptByFlag( |
| 149 scoped_refptr<gpu::PreemptionFlag> preemption_flag); | 151 scoped_refptr<gpu::PreemptionFlag> preemption_flag); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 scoped_refptr<base::MessageLoopProxy> io_message_loop_; | 261 scoped_refptr<base::MessageLoopProxy> io_message_loop_; |
| 260 | 262 |
| 261 size_t num_stubs_descheduled_; | 263 size_t num_stubs_descheduled_; |
| 262 | 264 |
| 263 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 265 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
| 264 }; | 266 }; |
| 265 | 267 |
| 266 } // namespace content | 268 } // namespace content |
| 267 | 269 |
| 268 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 270 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
| OLD | NEW |