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 // This header is meant to be included in multiple passes, hence no traditional | 5 // This header is meant to be included in multiple passes, hence no traditional |
6 // header guard. It is included by backing_store_messages_internal.h | 6 // header guard. It is included by backing_store_messages_internal.h |
7 // See ipc_message_macros.h for explanation of the macros and passes. | 7 // See ipc_message_macros.h for explanation of the macros and passes. |
8 | 8 |
9 // This file needs to be included again, even though we're actually included | 9 // This file needs to be included again, even though we're actually included |
10 // from it via utility_messages.h. | 10 // from it via utility_messages.h. |
11 #include "base/shared_memory.h" | 11 #include "base/shared_memory.h" |
12 #include "gfx/size.h" | 12 #include "gfx/size.h" |
13 #include "ipc/ipc_channel_handle.h" | 13 #include "ipc/ipc_channel_handle.h" |
14 #include "ipc/ipc_message_macros.h" | 14 #include "ipc/ipc_message_macros.h" |
15 | 15 |
16 //------------------------------------------------------------------------------ | 16 //------------------------------------------------------------------------------ |
17 // GPU Messages | 17 // GPU Messages |
18 // These are messages from the browser to the GPU process. | 18 // These are messages from the browser to the GPU process. |
19 IPC_BEGIN_MESSAGES(Gpu) | 19 IPC_BEGIN_MESSAGES(Gpu) |
20 | 20 |
21 // Tells the GPU process to create a new channel for communication with a | 21 // Tells the GPU process to create a new channel for communication with a |
22 // given renderer. The channel name is returned in a | 22 // given renderer. The channel name is returned in a |
23 // GpuHostMsg_ChannelEstablished message. The renderer ID is passed so that | 23 // GpuHostMsg_ChannelEstablished message. The renderer ID is passed so that |
24 // the GPU process reuses an existing channel to that process if it exists. | 24 // the GPU process reuses an existing channel to that process if it exists. |
25 // This ID is a unique opaque identifier generated by the browser process. | 25 // This ID is a unique opaque identifier generated by the browser process. |
26 IPC_MESSAGE_CONTROL1(GpuMsg_EstablishChannel, | 26 IPC_MESSAGE_CONTROL1(GpuMsg_EstablishChannel, |
27 int /* renderer_id */) | 27 int /* renderer_id */) |
28 | 28 |
| 29 // Provides a synchronization point to guarantee that the processing of |
| 30 // previous asynchronous messages (i.e., GpuMsg_EstablishChannel) has |
| 31 // completed. (This message can't be synchronous because the |
| 32 // GpuProcessHost uses an IPC::ChannelProxy, which sends all messages |
| 33 // asynchronously.) Results in a GpuHostMsg_SynchronizeReply. |
| 34 IPC_MESSAGE_CONTROL1(GpuMsg_Synchronize, |
| 35 int /* renderer_id */) |
| 36 |
29 IPC_MESSAGE_CONTROL2(GpuMsg_NewRenderWidgetHostView, | 37 IPC_MESSAGE_CONTROL2(GpuMsg_NewRenderWidgetHostView, |
30 GpuNativeWindowHandle, /* parent window */ | 38 GpuNativeWindowHandle, /* parent window */ |
31 int32 /* view_id */) | 39 int32 /* view_id */) |
32 | 40 |
33 // Creates a new backing store. | 41 // Creates a new backing store. |
34 IPC_MESSAGE_ROUTED2(GpuMsg_NewBackingStore, | 42 IPC_MESSAGE_ROUTED2(GpuMsg_NewBackingStore, |
35 int32, /* backing_store_routing_id */ | 43 int32, /* backing_store_routing_id */ |
36 gfx::Size /* size */) | 44 gfx::Size /* size */) |
37 | 45 |
38 // Creates a new video layer. | 46 // Creates a new video layer. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 91 |
84 // Sent in response to GpuMsg_PaintToBackingStore, see that for more. | 92 // Sent in response to GpuMsg_PaintToBackingStore, see that for more. |
85 IPC_MESSAGE_ROUTED0(GpuHostMsg_PaintToBackingStore_ACK) | 93 IPC_MESSAGE_ROUTED0(GpuHostMsg_PaintToBackingStore_ACK) |
86 | 94 |
87 // Sent in response to GpuMsg_PaintToVideoLayer, see that for more. | 95 // Sent in response to GpuMsg_PaintToVideoLayer, see that for more. |
88 IPC_MESSAGE_ROUTED0(GpuHostMsg_PaintToVideoLayer_ACK) | 96 IPC_MESSAGE_ROUTED0(GpuHostMsg_PaintToVideoLayer_ACK) |
89 | 97 |
90 // Response to a GpuHostMsg_EstablishChannel message. | 98 // Response to a GpuHostMsg_EstablishChannel message. |
91 IPC_MESSAGE_CONTROL1(GpuHostMsg_ChannelEstablished, | 99 IPC_MESSAGE_CONTROL1(GpuHostMsg_ChannelEstablished, |
92 IPC::ChannelHandle /* channel_handle */) | 100 IPC::ChannelHandle /* channel_handle */) |
| 101 |
| 102 // Response to a GpuMsg_Synchronize message. |
| 103 IPC_MESSAGE_CONTROL1(GpuHostMsg_SynchronizeReply, |
| 104 int /* renderer_id */) |
| 105 |
93 IPC_END_MESSAGES(GpuHost) | 106 IPC_END_MESSAGES(GpuHost) |
94 | 107 |
95 //------------------------------------------------------------------------------ | 108 //------------------------------------------------------------------------------ |
96 // GPU Channel Messages | 109 // GPU Channel Messages |
97 // These are messages from a renderer process to the GPU process. | 110 // These are messages from a renderer process to the GPU process. |
98 IPC_BEGIN_MESSAGES(GpuChannel) | 111 IPC_BEGIN_MESSAGES(GpuChannel) |
99 | 112 |
100 // Tells the GPU process to create a new command buffer that renders directly | 113 // Tells the GPU process to create a new command buffer that renders directly |
101 // to a native view. A corresponding GpuCommandBufferStub is created. | 114 // to a native view. A corresponding GpuCommandBufferStub is created. |
102 IPC_SYNC_MESSAGE_CONTROL1_1(GpuChannelMsg_CreateViewCommandBuffer, | 115 IPC_SYNC_MESSAGE_CONTROL1_1(GpuChannelMsg_CreateViewCommandBuffer, |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // true cross-process window hierarchy. For this reason we must send | 203 // true cross-process window hierarchy. For this reason we must send |
191 // resize events explicitly to the command buffer stub so it can | 204 // resize events explicitly to the command buffer stub so it can |
192 // reallocate its backing store and send the new one back to the | 205 // reallocate its backing store and send the new one back to the |
193 // browser. This message is currently used only on 10.6 and later. | 206 // browser. This message is currently used only on 10.6 and later. |
194 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SetWindowSize, | 207 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SetWindowSize, |
195 int32 /* width */, | 208 int32 /* width */, |
196 int32 /* height */) | 209 int32 /* height */) |
197 #endif | 210 #endif |
198 | 211 |
199 IPC_END_MESSAGES(GpuCommandBuffer) | 212 IPC_END_MESSAGES(GpuCommandBuffer) |
OLD | NEW |