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 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 // Message handlers. | 79 // Message handlers. |
80 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle, | 80 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle, |
81 const GPUInfo& gpu_info); | 81 const GPUInfo& gpu_info); |
82 void OnSynchronizeReply(); | 82 void OnSynchronizeReply(); |
83 #if defined(OS_LINUX) | 83 #if defined(OS_LINUX) |
84 void OnGetViewXID(gfx::NativeViewId id, IPC::Message* reply_msg); | 84 void OnGetViewXID(gfx::NativeViewId id, IPC::Message* reply_msg); |
85 #elif defined(OS_MACOSX) | 85 #elif defined(OS_MACOSX) |
86 void OnAcceleratedSurfaceSetIOSurface( | 86 void OnAcceleratedSurfaceSetIOSurface( |
87 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params); | 87 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params); |
88 void OnAcceleratedSurfaceBuffersSwapped(int32 renderer_id, | 88 void OnAcceleratedSurfaceBuffersSwapped(int renderer_id, |
89 int32 render_view_id, | 89 int render_view_id, |
90 gfx::PluginWindowHandle window, | 90 gfx::PluginWindowHandle window, |
91 uint64 surface_id); | 91 uint64 surface_id); |
| 92 #elif defined(OS_WIN) |
| 93 void OnCreateCompositorHostWindow(int renderer_id, |
| 94 int render_view_id, |
| 95 IPC::Message* reply_message); |
92 #endif | 96 #endif |
93 | 97 |
94 // Sends the response for establish channel request to the renderer. | 98 // Sends the response for establish channel request to the renderer. |
95 void SendEstablishChannelReply(const IPC::ChannelHandle& channel, | 99 void SendEstablishChannelReply(const IPC::ChannelHandle& channel, |
96 const GPUInfo& gpu_info, | 100 const GPUInfo& gpu_info, |
97 ResourceMessageFilter* filter); | 101 ResourceMessageFilter* filter); |
98 // Sends the response for synchronization request to the renderer. | 102 // Sends the response for synchronization request to the renderer. |
99 void SendSynchronizationReply(IPC::Message* reply, | 103 void SendSynchronizationReply(IPC::Message* reply, |
100 ResourceMessageFilter* filter); | 104 ResourceMessageFilter* filter); |
101 | 105 |
(...skipping 12 matching lines...) Expand all Loading... |
114 // the GPU process, but haven't heard back about yet. | 118 // the GPU process, but haven't heard back about yet. |
115 std::queue<ChannelRequest> sent_requests_; | 119 std::queue<ChannelRequest> sent_requests_; |
116 | 120 |
117 // The pending synchronization requests we need to reply to. | 121 // The pending synchronization requests we need to reply to. |
118 std::queue<SynchronizationRequest> queued_synchronization_replies_; | 122 std::queue<SynchronizationRequest> queued_synchronization_replies_; |
119 | 123 |
120 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 124 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
121 }; | 125 }; |
122 | 126 |
123 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ | 127 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ |
OLD | NEW |