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_BROWSER_GPU_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_GPU_PROCESS_HOST_H_ |
6 #define CHROME_BROWSER_GPU_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_GPU_PROCESS_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <queue> | 9 #include <queue> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/non_thread_safe.h" | 12 #include "base/non_thread_safe.h" |
13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
14 #include "chrome/browser/browser_child_process_host.h" | 14 #include "chrome/browser/browser_child_process_host.h" |
15 #include "gfx/native_widget_types.h" | 15 #include "gfx/native_widget_types.h" |
16 | 16 |
17 struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params; | 17 struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params; |
18 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; | 18 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; |
| 19 class GpuBlacklist; |
19 class GPUInfo; | 20 class GPUInfo; |
20 class ResourceMessageFilter; | 21 class ResourceMessageFilter; |
21 | 22 |
22 namespace gfx { | 23 namespace gfx { |
23 class Size; | 24 class Size; |
24 } | 25 } |
25 | 26 |
26 namespace IPC { | 27 namespace IPC { |
27 struct ChannelHandle; | 28 struct ChannelHandle; |
28 class Message; | 29 class Message; |
(...skipping 84 matching lines...) Loading... |
113 uint32 request_id, | 114 uint32 request_id, |
114 const ViewHostMsg_Resource_Request& request_data); | 115 const ViewHostMsg_Resource_Request& request_data); |
115 | 116 |
116 virtual bool CanShutdown(); | 117 virtual bool CanShutdown(); |
117 virtual void OnChildDied(); | 118 virtual void OnChildDied(); |
118 virtual void OnProcessCrashed(); | 119 virtual void OnProcessCrashed(); |
119 | 120 |
120 bool CanLaunchGpuProcess() const; | 121 bool CanLaunchGpuProcess() const; |
121 bool LaunchGpuProcess(); | 122 bool LaunchGpuProcess(); |
122 | 123 |
| 124 bool LoadGpuBlacklist(); |
| 125 |
123 bool initialized_; | 126 bool initialized_; |
124 bool initialized_successfully_; | 127 bool initialized_successfully_; |
125 | 128 |
| 129 scoped_ptr<GpuBlacklist> gpu_blacklist_; |
| 130 |
126 // These are the channel requests that we have already sent to | 131 // These are the channel requests that we have already sent to |
127 // the GPU process, but haven't heard back about yet. | 132 // the GPU process, but haven't heard back about yet. |
128 std::queue<ChannelRequest> sent_requests_; | 133 std::queue<ChannelRequest> sent_requests_; |
129 | 134 |
130 // The pending synchronization requests we need to reply to. | 135 // The pending synchronization requests we need to reply to. |
131 std::queue<SynchronizationRequest> queued_synchronization_replies_; | 136 std::queue<SynchronizationRequest> queued_synchronization_replies_; |
132 | 137 |
133 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 138 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
134 }; | 139 }; |
135 | 140 |
136 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ | 141 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ |
OLD | NEW |