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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 // calling process. | 150 // calling process. |
151 IPC_SYNC_MESSAGE_ROUTED1_2(GpuCommandBufferMsg_Initialize, | 151 IPC_SYNC_MESSAGE_ROUTED1_2(GpuCommandBufferMsg_Initialize, |
152 base::SharedMemoryHandle /* shared_state */, | 152 base::SharedMemoryHandle /* shared_state */, |
153 bool /* result */, | 153 bool /* result */, |
154 gpu::Capabilities /* capabilities */) | 154 gpu::Capabilities /* capabilities */) |
155 | 155 |
156 // Sets the shared memory buffer used for commands. | 156 // Sets the shared memory buffer used for commands. |
157 IPC_SYNC_MESSAGE_ROUTED1_0(GpuCommandBufferMsg_SetGetBuffer, | 157 IPC_SYNC_MESSAGE_ROUTED1_0(GpuCommandBufferMsg_SetGetBuffer, |
158 int32_t /* shm_id */) | 158 int32_t /* shm_id */) |
159 | 159 |
160 // Produces the front buffer into a mailbox. This allows another context to draw | 160 // Takes the front buffer into a mailbox. This allows another context to draw |
161 // the output of this context. | 161 // the output of this context. |
162 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_ProduceFrontBuffer, | 162 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_TakeFrontBuffer, |
163 gpu::Mailbox /* mailbox */) | 163 gpu::Mailbox /* mailbox */) |
164 | 164 |
| 165 // Returns a front buffer taken with GpuCommandBufferMsg_TakeFrontBuffer. This |
| 166 // allows it to be reused. |
| 167 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_ReturnFrontBuffer, |
| 168 gpu::Mailbox /* mailbox */, |
| 169 bool /* is_lost */) |
| 170 |
165 // Wait until the token is in a specific range, inclusive. | 171 // Wait until the token is in a specific range, inclusive. |
166 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_WaitForTokenInRange, | 172 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_WaitForTokenInRange, |
167 int32_t /* start */, | 173 int32_t /* start */, |
168 int32_t /* end */, | 174 int32_t /* end */, |
169 gpu::CommandBuffer::State /* state */) | 175 gpu::CommandBuffer::State /* state */) |
170 | 176 |
171 // Wait until the get offset is in a specific range, inclusive. | 177 // Wait until the get offset is in a specific range, inclusive. |
172 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_WaitForGetOffsetInRange, | 178 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_WaitForGetOffsetInRange, |
173 int32_t /* start */, | 179 int32_t /* start */, |
174 int32_t /* end */, | 180 int32_t /* end */, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 // Tells the browser that SwapBuffers returned and passes latency info | 212 // Tells the browser that SwapBuffers returned and passes latency info |
207 IPC_MESSAGE_ROUTED1( | 213 IPC_MESSAGE_ROUTED1( |
208 GpuCommandBufferMsg_SwapBuffersCompleted, | 214 GpuCommandBufferMsg_SwapBuffersCompleted, |
209 GpuCommandBufferMsg_SwapBuffersCompleted_Params /* params */) | 215 GpuCommandBufferMsg_SwapBuffersCompleted_Params /* params */) |
210 | 216 |
211 // Tells the browser about updated parameters for vsync alignment. | 217 // Tells the browser about updated parameters for vsync alignment. |
212 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_UpdateVSyncParameters, | 218 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_UpdateVSyncParameters, |
213 base::TimeTicks /* timebase */, | 219 base::TimeTicks /* timebase */, |
214 base::TimeDelta /* interval */) | 220 base::TimeDelta /* interval */) |
215 | 221 |
| 222 // The receiver will stop processing messages until the Synctoken is signaled. |
| 223 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_WaitSyncToken, |
| 224 gpu::SyncToken /* sync_token */) |
| 225 |
| 226 // The receiver will asynchronously wait until the SyncToken is signaled, and |
| 227 // then return a GpuCommandBufferMsg_SignalAck message. |
216 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalSyncToken, | 228 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalSyncToken, |
217 gpu::SyncToken /* sync_token */, | 229 gpu::SyncToken /* sync_token */, |
218 uint32_t /* signal_id */) | 230 uint32_t /* signal_id */) |
219 | 231 |
220 // Makes this command buffer signal when a query is reached, by sending | 232 // Makes this command buffer signal when a query is reached, by sending |
221 // back a GpuCommandBufferMsg_SignalSyncPointAck message with the same | 233 // back a GpuCommandBufferMsg_SignalSyncPointAck message with the same |
222 // signal_id. | 234 // signal_id. |
223 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalQuery, | 235 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalQuery, |
224 uint32_t /* query */, | 236 uint32_t /* query */, |
225 uint32_t /* signal_id */) | 237 uint32_t /* signal_id */) |
226 | 238 |
227 // Response to SignalSyncPoint, SignalSyncToken, and SignalQuery. | 239 // Response to SignalSyncPoint, SignalSyncToken, and SignalQuery. |
228 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SignalAck, uint32_t /* signal_id */) | 240 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SignalAck, uint32_t /* signal_id */) |
229 | 241 |
230 // Create an image from an existing gpu memory buffer. The id that can be | 242 // Create an image from an existing gpu memory buffer. The id that can be |
231 // used to identify the image from a command buffer. | 243 // used to identify the image from a command buffer. |
232 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_CreateImage, | 244 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_CreateImage, |
233 GpuCommandBufferMsg_CreateImage_Params /* params */) | 245 GpuCommandBufferMsg_CreateImage_Params /* params */) |
234 | 246 |
235 // Destroy a previously created image. | 247 // Destroy a previously created image. |
236 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) | 248 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) |
237 | 249 |
238 // Attaches an external image stream to the client texture. | 250 // Attaches an external image stream to the client texture. |
239 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, | 251 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, |
240 uint32_t, /* client_texture_id */ | 252 uint32_t, /* client_texture_id */ |
241 int32_t, /* stream_id */ | 253 int32_t, /* stream_id */ |
242 bool /* succeeded */) | 254 bool /* succeeded */) |
OLD | NEW |