OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Multiply-included message file, hence no include guard here, but see below | 5 // Multiply-included message file, hence no include guard here, but see below |
6 // for a much smaller-than-usual include guard section. | 6 // for a much smaller-than-usual include guard section. |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // calling process. | 130 // calling process. |
131 IPC_SYNC_MESSAGE_ROUTED1_2(GpuCommandBufferMsg_Initialize, | 131 IPC_SYNC_MESSAGE_ROUTED1_2(GpuCommandBufferMsg_Initialize, |
132 base::SharedMemoryHandle /* shared_state */, | 132 base::SharedMemoryHandle /* shared_state */, |
133 bool /* result */, | 133 bool /* result */, |
134 gpu::Capabilities /* capabilities */) | 134 gpu::Capabilities /* capabilities */) |
135 | 135 |
136 // Sets the shared memory buffer used for commands. | 136 // Sets the shared memory buffer used for commands. |
137 IPC_SYNC_MESSAGE_ROUTED1_0(GpuCommandBufferMsg_SetGetBuffer, | 137 IPC_SYNC_MESSAGE_ROUTED1_0(GpuCommandBufferMsg_SetGetBuffer, |
138 int32_t /* shm_id */) | 138 int32_t /* shm_id */) |
139 | 139 |
140 // Produces the front buffer into a mailbox. This allows another context to draw | 140 // Takes the front buffer into a mailbox. This allows another context to draw |
141 // the output of this context. | 141 // the output of this context. |
142 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_ProduceFrontBuffer, | 142 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_TakeFrontBuffer, |
143 gpu::Mailbox /* mailbox */) | 143 gpu::Mailbox /* mailbox */) |
144 | 144 |
| 145 // Returns a front buffer taken with GpuCommandBufferMsg_TakeFrontBuffer. This |
| 146 // allows it to be reused. |
| 147 IPC_MESSAGE_ROUTED3(GpuCommandBufferMsg_ReturnFrontBuffer, |
| 148 gpu::Mailbox /* mailbox */, |
| 149 gpu::SyncToken /* sync_token */, |
| 150 bool /* is_lost */) |
| 151 |
145 // Wait until the token is in a specific range, inclusive. | 152 // Wait until the token is in a specific range, inclusive. |
146 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_WaitForTokenInRange, | 153 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_WaitForTokenInRange, |
147 int32_t /* start */, | 154 int32_t /* start */, |
148 int32_t /* end */, | 155 int32_t /* end */, |
149 gpu::CommandBuffer::State /* state */) | 156 gpu::CommandBuffer::State /* state */) |
150 | 157 |
151 // Wait until the get offset is in a specific range, inclusive. | 158 // Wait until the get offset is in a specific range, inclusive. |
152 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_WaitForGetOffsetInRange, | 159 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_WaitForGetOffsetInRange, |
153 int32_t /* start */, | 160 int32_t /* start */, |
154 int32_t /* end */, | 161 int32_t /* end */, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 GpuCommandBufferMsg_CreateImage_Params /* params */) | 220 GpuCommandBufferMsg_CreateImage_Params /* params */) |
214 | 221 |
215 // Destroy a previously created image. | 222 // Destroy a previously created image. |
216 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) | 223 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) |
217 | 224 |
218 // Attaches an external image stream to the client texture. | 225 // Attaches an external image stream to the client texture. |
219 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, | 226 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, |
220 uint32_t, /* client_texture_id */ | 227 uint32_t, /* client_texture_id */ |
221 int32_t, /* stream_id */ | 228 int32_t, /* stream_id */ |
222 bool /* succeeded */) | 229 bool /* succeeded */) |
OLD | NEW |