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