OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_GPU_GPU_THREAD_H_ | 5 #ifndef CHROME_GPU_GPU_THREAD_H_ |
6 #define CHROME_GPU_GPU_THREAD_H_ | 6 #define CHROME_GPU_GPU_THREAD_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
14 #include "base/time.h" | 14 #include "base/time.h" |
15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
16 #include "chrome/common/child_thread.h" | 16 #include "chrome/common/child_thread.h" |
17 #include "chrome/common/gpu_info.h" | 17 #include "chrome/common/gpu_info.h" |
18 #include "chrome/gpu/gpu_channel.h" | 18 #include "chrome/gpu/gpu_channel.h" |
19 #include "chrome/gpu/gpu_config.h" | 19 #include "chrome/gpu/gpu_config.h" |
20 #include "chrome/gpu/x_util.h" | 20 #include "chrome/gpu/x_util.h" |
21 #include "gfx/native_widget_types.h" | 21 #include "ui/gfx/native_widget_types.h" |
22 | 22 |
23 namespace IPC { | 23 namespace IPC { |
24 struct ChannelHandle; | 24 struct ChannelHandle; |
25 } | 25 } |
26 | 26 |
27 class GpuWatchdogThread; | 27 class GpuWatchdogThread; |
28 | 28 |
29 class GpuThread : public ChildThread { | 29 class GpuThread : public ChildThread { |
30 public: | 30 public: |
31 GpuThread(); | 31 GpuThread(); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap; | 75 typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap; |
76 GpuChannelMap gpu_channels_; | 76 GpuChannelMap gpu_channels_; |
77 | 77 |
78 // Information about the GPU, such as device and vendor ID. | 78 // Information about the GPU, such as device and vendor ID. |
79 GPUInfo gpu_info_; | 79 GPUInfo gpu_info_; |
80 | 80 |
81 DISALLOW_COPY_AND_ASSIGN(GpuThread); | 81 DISALLOW_COPY_AND_ASSIGN(GpuThread); |
82 }; | 82 }; |
83 | 83 |
84 #endif // CHROME_GPU_GPU_THREAD_H_ | 84 #endif // CHROME_GPU_GPU_THREAD_H_ |
OLD | NEW |