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/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
13 #include "chrome/browser/browser_child_process_host.h" | 13 #include "chrome/browser/browser_child_process_host.h" |
14 #include "chrome/browser/renderer_host/resource_message_filter.h" | 14 #include "chrome/browser/renderer_host/resource_message_filter.h" |
15 #include "chrome/common/gpu_info.h" | 15 #include "chrome/common/gpu_info.h" |
16 #include "gfx/native_widget_types.h" | 16 #include "gfx/native_widget_types.h" |
17 | 17 |
18 class CommandBufferProxy; | |
19 struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params; | 18 struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params; |
20 | 19 |
21 namespace IPC { | 20 namespace IPC { |
22 struct ChannelHandle; | 21 struct ChannelHandle; |
23 class Message; | 22 class Message; |
24 } | 23 } |
25 | 24 |
26 class GpuProcessHost : public BrowserChildProcessHost { | 25 class GpuProcessHost : public BrowserChildProcessHost { |
27 public: | 26 public: |
28 // Getter for the singleton. This will return NULL on failure. | 27 // Getter for the singleton. This will return NULL on failure. |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // the GPU process, but haven't heard back about yet. | 115 // the GPU process, but haven't heard back about yet. |
117 std::queue<ChannelRequest> sent_requests_; | 116 std::queue<ChannelRequest> sent_requests_; |
118 | 117 |
119 // The pending synchronization requests we need to reply to. | 118 // The pending synchronization requests we need to reply to. |
120 std::queue<SynchronizationRequest> queued_synchronization_replies_; | 119 std::queue<SynchronizationRequest> queued_synchronization_replies_; |
121 | 120 |
122 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 121 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
123 }; | 122 }; |
124 | 123 |
125 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ | 124 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ |
OLD | NEW |