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