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> |
11 | 11 |
12 #include "base/id_map.h" | 12 #include "base/id_map.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/memory/weak_ptr.h" |
15 #include "base/process.h" | 16 #include "base/process.h" |
16 #include "build/build_config.h" | 17 #include "build/build_config.h" |
17 #include "content/common/gpu/gpu_command_buffer_stub.h" | 18 #include "content/common/gpu/gpu_command_buffer_stub.h" |
18 #include "content/common/message_router.h" | 19 #include "content/common/message_router.h" |
19 #include "ipc/ipc_sync_channel.h" | 20 #include "ipc/ipc_sync_channel.h" |
20 #include "ui/gfx/gl/gl_share_group.h" | 21 #include "ui/gfx/gl/gl_share_group.h" |
21 #include "ui/gfx/gl/gpu_preference.h" | 22 #include "ui/gfx/gl/gpu_preference.h" |
22 #include "ui/gfx/native_widget_types.h" | 23 #include "ui/gfx/native_widget_types.h" |
23 #include "ui/gfx/size.h" | 24 #include "ui/gfx/size.h" |
24 | 25 |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 TransportTextureMap transport_textures_; | 179 TransportTextureMap transport_textures_; |
179 | 180 |
180 bool log_messages_; // True if we should log sent and received messages. | 181 bool log_messages_; // True if we should log sent and received messages. |
181 gpu::gles2::DisallowedFeatures disallowed_features_; | 182 gpu::gles2::DisallowedFeatures disallowed_features_; |
182 GpuWatchdog* watchdog_; | 183 GpuWatchdog* watchdog_; |
183 bool software_; | 184 bool software_; |
184 bool handle_messages_scheduled_; | 185 bool handle_messages_scheduled_; |
185 bool processed_get_state_fast_; | 186 bool processed_get_state_fast_; |
186 int32 num_contexts_preferring_discrete_gpu_; | 187 int32 num_contexts_preferring_discrete_gpu_; |
187 | 188 |
188 ScopedRunnableMethodFactory<GpuChannel> task_factory_; | 189 base::WeakPtrFactory<GpuChannel> weak_factory_; |
189 | 190 |
190 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 191 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
191 }; | 192 }; |
192 | 193 |
193 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 194 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
OLD | NEW |