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> |
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/memory/weak_ptr.h" |
16 #include "base/process.h" | 16 #include "base/process.h" |
17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
18 #include "content/common/gpu/gpu_command_buffer_stub.h" | 18 #include "content/common/gpu/gpu_command_buffer_stub.h" |
19 #include "content/common/gpu/gpu_memory_manager.h" | 19 #include "content/common/gpu/gpu_memory_manager.h" |
20 #include "content/common/message_router.h" | 20 #include "content/common/message_router.h" |
21 #include "ipc/ipc_sync_channel.h" | 21 #include "ipc/ipc_sync_channel.h" |
22 #include "ui/gfx/gl/gl_share_group.h" | |
23 #include "ui/gfx/gl/gpu_preference.h" | |
24 #include "ui/gfx/native_widget_types.h" | 22 #include "ui/gfx/native_widget_types.h" |
25 #include "ui/gfx/size.h" | 23 #include "ui/gfx/size.h" |
| 24 #include "ui/gl/gl_share_group.h" |
| 25 #include "ui/gl/gpu_preference.h" |
26 | 26 |
27 class GpuChannelManager; | 27 class GpuChannelManager; |
28 struct GPUCreateCommandBufferConfig; | 28 struct GPUCreateCommandBufferConfig; |
29 class GpuWatchdog; | 29 class GpuWatchdog; |
30 | 30 |
31 namespace base { | 31 namespace base { |
32 class MessageLoopProxy; | 32 class MessageLoopProxy; |
33 class WaitableEvent; | 33 class WaitableEvent; |
34 } | 34 } |
35 | 35 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 bool handle_messages_scheduled_; | 170 bool handle_messages_scheduled_; |
171 bool processed_get_state_fast_; | 171 bool processed_get_state_fast_; |
172 int32 num_contexts_preferring_discrete_gpu_; | 172 int32 num_contexts_preferring_discrete_gpu_; |
173 | 173 |
174 base::WeakPtrFactory<GpuChannel> weak_factory_; | 174 base::WeakPtrFactory<GpuChannel> weak_factory_; |
175 | 175 |
176 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 176 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
177 }; | 177 }; |
178 | 178 |
179 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 179 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
OLD | NEW |