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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
75 bool Init(); | 75 bool Init(); |
76 | 76 |
77 void OnControlMessageReceived(const IPC::Message& message); | 77 void OnControlMessageReceived(const IPC::Message& message); |
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 void OnResizeXID(unsigned long xid, int32 width, int32 height, | |
nduca
2010/11/23 16:59:49
jam@ has been pushing me to use ints instead of in
jonathan.backer
2010/11/23 21:00:19
Done. I'm switching to gfx::Size because it is mor
| |
86 IPC::Message* reply_msg); | |
85 #elif defined(OS_MACOSX) | 87 #elif defined(OS_MACOSX) |
86 void OnAcceleratedSurfaceSetIOSurface( | 88 void OnAcceleratedSurfaceSetIOSurface( |
87 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params); | 89 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params); |
88 void OnAcceleratedSurfaceBuffersSwapped(int32 renderer_id, | 90 void OnAcceleratedSurfaceBuffersSwapped(int32 renderer_id, |
89 int32 render_view_id, | 91 int32 render_view_id, |
90 gfx::PluginWindowHandle window, | 92 gfx::PluginWindowHandle window, |
91 uint64 surface_id); | 93 uint64 surface_id); |
92 #endif | 94 #endif |
93 | 95 |
94 // Sends the response for establish channel request to the renderer. | 96 // Sends the response for establish channel request to the renderer. |
(...skipping 22 matching lines...) Expand all Loading... | |
117 // the GPU process, but haven't heard back about yet. | 119 // the GPU process, but haven't heard back about yet. |
118 std::queue<ChannelRequest> sent_requests_; | 120 std::queue<ChannelRequest> sent_requests_; |
119 | 121 |
120 // The pending synchronization requests we need to reply to. | 122 // The pending synchronization requests we need to reply to. |
121 std::queue<SynchronizationRequest> queued_synchronization_replies_; | 123 std::queue<SynchronizationRequest> queued_synchronization_replies_; |
122 | 124 |
123 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 125 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
124 }; | 126 }; |
125 | 127 |
126 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ | 128 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ |
OLD | NEW |