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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 #if defined(OS_LINUX) | 88 #if defined(OS_LINUX) |
89 void OnGetViewXID(gfx::NativeViewId id, IPC::Message* reply_msg); | 89 void OnGetViewXID(gfx::NativeViewId id, IPC::Message* reply_msg); |
90 void OnReleaseXID(unsigned long xid); | 90 void OnReleaseXID(unsigned long xid); |
91 void OnResizeXID(unsigned long xid, gfx::Size size, IPC::Message* reply_msg); | 91 void OnResizeXID(unsigned long xid, gfx::Size size, IPC::Message* reply_msg); |
92 #elif defined(OS_MACOSX) | 92 #elif defined(OS_MACOSX) |
93 void OnAcceleratedSurfaceSetIOSurface( | 93 void OnAcceleratedSurfaceSetIOSurface( |
94 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params); | 94 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params); |
95 void OnAcceleratedSurfaceBuffersSwapped( | 95 void OnAcceleratedSurfaceBuffersSwapped( |
96 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); | 96 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); |
97 #elif defined(OS_WIN) | 97 #elif defined(OS_WIN) |
98 void OnCreateCompositorHostWindow(int renderer_id, | 98 void OnGetCompositorHostWindow(int renderer_id, |
99 int render_view_id, | 99 int render_view_id, |
100 IPC::Message* reply_message); | 100 IPC::Message* reply_message); |
101 #endif | 101 #endif |
102 | 102 |
103 // Sends the response for establish channel request to the renderer. | 103 // Sends the response for establish channel request to the renderer. |
104 void SendEstablishChannelReply(const IPC::ChannelHandle& channel, | 104 void SendEstablishChannelReply(const IPC::ChannelHandle& channel, |
105 const GPUInfo& gpu_info, | 105 const GPUInfo& gpu_info, |
106 ResourceMessageFilter* filter); | 106 ResourceMessageFilter* filter); |
107 // Sends the response for synchronization request to the renderer. | 107 // Sends the response for synchronization request to the renderer. |
108 void SendSynchronizationReply(IPC::Message* reply, | 108 void SendSynchronizationReply(IPC::Message* reply, |
(...skipping 18 matching lines...) Expand all Loading... |
127 // the GPU process, but haven't heard back about yet. | 127 // the GPU process, but haven't heard back about yet. |
128 std::queue<ChannelRequest> sent_requests_; | 128 std::queue<ChannelRequest> sent_requests_; |
129 | 129 |
130 // The pending synchronization requests we need to reply to. | 130 // The pending synchronization requests we need to reply to. |
131 std::queue<SynchronizationRequest> queued_synchronization_replies_; | 131 std::queue<SynchronizationRequest> queued_synchronization_replies_; |
132 | 132 |
133 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 133 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
134 }; | 134 }; |
135 | 135 |
136 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ | 136 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ |
OLD | NEW |