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_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <queue> | 10 #include <queue> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback_old.h" |
13 #include "base/memory/linked_ptr.h" | 13 #include "base/memory/linked_ptr.h" |
14 #include "base/threading/non_thread_safe.h" | 14 #include "base/threading/non_thread_safe.h" |
15 #include "content/browser/browser_child_process_host.h" | 15 #include "content/browser/browser_child_process_host.h" |
16 #include "content/common/gpu/gpu_info.h" | 16 #include "content/common/gpu/gpu_info.h" |
17 #include "content/common/gpu/gpu_process_launch_causes.h" | 17 #include "content/common/gpu/gpu_process_launch_causes.h" |
18 #include "ui/gfx/native_widget_types.h" | 18 #include "ui/gfx/native_widget_types.h" |
19 | 19 |
20 struct GPUCreateCommandBufferConfig; | 20 struct GPUCreateCommandBufferConfig; |
21 | 21 |
22 namespace IPC { | 22 namespace IPC { |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 // Qeueud messages to send when the process launches. | 148 // Qeueud messages to send when the process launches. |
149 std::queue<IPC::Message*> queued_messages_; | 149 std::queue<IPC::Message*> queued_messages_; |
150 | 150 |
151 // The handle for the GPU process or null if it is not known to be launched. | 151 // The handle for the GPU process or null if it is not known to be launched. |
152 base::ProcessHandle gpu_process_; | 152 base::ProcessHandle gpu_process_; |
153 | 153 |
154 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 154 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
155 }; | 155 }; |
156 | 156 |
157 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 157 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
OLD | NEW |