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_GPU_GPU_CHILD_THREAD_H_ | 5 #ifndef CONTENT_GPU_GPU_CHILD_THREAD_H_ |
6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ | 6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 namespace content { | 28 namespace content { |
29 class GpuWatchdogThread; | 29 class GpuWatchdogThread; |
30 | 30 |
31 // The main thread of the GPU child process. There will only ever be one of | 31 // The main thread of the GPU child process. There will only ever be one of |
32 // these per process. It does process initialization and shutdown. It forwards | 32 // these per process. It does process initialization and shutdown. It forwards |
33 // IPC messages to GpuChannelManager, which is responsible for issuing rendering | 33 // IPC messages to GpuChannelManager, which is responsible for issuing rendering |
34 // commands to the GPU. | 34 // commands to the GPU. |
35 class GpuChildThread : public ChildThread { | 35 class GpuChildThread : public ChildThread { |
36 public: | 36 public: |
37 explicit GpuChildThread(GpuWatchdogThread* gpu_watchdog_thread, | 37 GpuChildThread(GpuWatchdogThread* gpu_watchdog_thread, |
38 bool dead_on_arrival, | 38 bool dead_on_arrival, |
39 const GPUInfo& gpu_info); | 39 const GPUInfo& gpu_info); |
40 | 40 |
41 // For single-process mode. | 41 // For single-process mode. |
42 explicit GpuChildThread(const std::string& channel_id); | 42 explicit GpuChildThread(const std::string& channel_id); |
43 | 43 |
44 virtual ~GpuChildThread(); | 44 virtual ~GpuChildThread(); |
45 | 45 |
46 void Init(const base::Time& process_start_time); | 46 void Init(const base::Time& process_start_time); |
47 void StopWatchdog(); | 47 void StopWatchdog(); |
48 | 48 |
49 // ChildThread overrides. | 49 // ChildThread overrides. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 81 |
82 // Information about the GPU, such as device and vendor ID. | 82 // Information about the GPU, such as device and vendor ID. |
83 GPUInfo gpu_info_; | 83 GPUInfo gpu_info_; |
84 | 84 |
85 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 85 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
86 }; | 86 }; |
87 | 87 |
88 } // namespace content | 88 } // namespace content |
89 | 89 |
90 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 90 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
OLD | NEW |