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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <string> | 10 #include <string> |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 // Uniquely identifies the channel within this GPU process. | 149 // Uniquely identifies the channel within this GPU process. |
150 std::string channel_id_; | 150 std::string channel_id_; |
151 | 151 |
152 // Used to implement message routing functionality to CommandBuffer objects | 152 // Used to implement message routing functionality to CommandBuffer objects |
153 MessageRouter router_; | 153 MessageRouter router_; |
154 | 154 |
155 // The share group that all contexts associated with a particular renderer | 155 // The share group that all contexts associated with a particular renderer |
156 // process use. | 156 // process use. |
157 scoped_refptr<gfx::GLShareGroup> share_group_; | 157 scoped_refptr<gfx::GLShareGroup> share_group_; |
158 | 158 |
| 159 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; |
| 160 |
159 #if defined(ENABLE_GPU) | 161 #if defined(ENABLE_GPU) |
160 typedef IDMap<GpuCommandBufferStub, IDMapOwnPointer> StubMap; | 162 typedef IDMap<GpuCommandBufferStub, IDMapOwnPointer> StubMap; |
161 StubMap stubs_; | 163 StubMap stubs_; |
162 #endif // defined (ENABLE_GPU) | 164 #endif // defined (ENABLE_GPU) |
163 | 165 |
164 bool log_messages_; // True if we should log sent and received messages. | 166 bool log_messages_; // True if we should log sent and received messages. |
165 gpu::gles2::DisallowedFeatures disallowed_features_; | 167 gpu::gles2::DisallowedFeatures disallowed_features_; |
166 GpuWatchdog* watchdog_; | 168 GpuWatchdog* watchdog_; |
167 bool software_; | 169 bool software_; |
168 bool handle_messages_scheduled_; | 170 bool handle_messages_scheduled_; |
169 bool processed_get_state_fast_; | 171 bool processed_get_state_fast_; |
170 int32 num_contexts_preferring_discrete_gpu_; | 172 int32 num_contexts_preferring_discrete_gpu_; |
171 | 173 |
172 base::WeakPtrFactory<GpuChannel> weak_factory_; | 174 base::WeakPtrFactory<GpuChannel> weak_factory_; |
173 | 175 |
174 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 176 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
175 }; | 177 }; |
176 | 178 |
177 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 179 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
OLD | NEW |