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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 // The share group that all contexts associated with a particular renderer | 211 // The share group that all contexts associated with a particular renderer |
212 // process use. | 212 // process use. |
213 scoped_refptr<gfx::GLShareGroup> share_group_; | 213 scoped_refptr<gfx::GLShareGroup> share_group_; |
214 | 214 |
215 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; | 215 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; |
216 scoped_refptr<gpu::gles2::ImageManager> image_manager_; | 216 scoped_refptr<gpu::gles2::ImageManager> image_manager_; |
217 | 217 |
218 typedef IDMap<GpuCommandBufferStub, IDMapOwnPointer> StubMap; | 218 typedef IDMap<GpuCommandBufferStub, IDMapOwnPointer> StubMap; |
219 StubMap stubs_; | 219 StubMap stubs_; |
220 | 220 |
| 221 bool log_messages_; // True if we should log sent and received messages. |
221 gpu::gles2::DisallowedFeatures disallowed_features_; | 222 gpu::gles2::DisallowedFeatures disallowed_features_; |
222 GpuWatchdog* watchdog_; | 223 GpuWatchdog* watchdog_; |
223 bool software_; | 224 bool software_; |
224 bool handle_messages_scheduled_; | 225 bool handle_messages_scheduled_; |
225 IPC::Message* currently_processing_message_; | 226 IPC::Message* currently_processing_message_; |
226 | 227 |
227 base::WeakPtrFactory<GpuChannel> weak_factory_; | 228 base::WeakPtrFactory<GpuChannel> weak_factory_; |
228 | 229 |
229 scoped_refptr<GpuChannelMessageFilter> filter_; | 230 scoped_refptr<GpuChannelMessageFilter> filter_; |
230 scoped_refptr<base::MessageLoopProxy> io_message_loop_; | 231 scoped_refptr<base::MessageLoopProxy> io_message_loop_; |
231 scoped_ptr<DevToolsGpuAgent> devtools_gpu_agent_; | 232 scoped_ptr<DevToolsGpuAgent> devtools_gpu_agent_; |
232 | 233 |
233 size_t num_stubs_descheduled_; | 234 size_t num_stubs_descheduled_; |
234 | 235 |
235 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 236 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
236 }; | 237 }; |
237 | 238 |
238 } // namespace content | 239 } // namespace content |
239 | 240 |
240 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 241 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
OLD | NEW |