| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 // calling process. | 131 // calling process. |
| 132 IPC_SYNC_MESSAGE_ROUTED1_2(GpuCommandBufferMsg_Initialize, | 132 IPC_SYNC_MESSAGE_ROUTED1_2(GpuCommandBufferMsg_Initialize, |
| 133 base::SharedMemoryHandle /* shared_state */, | 133 base::SharedMemoryHandle /* shared_state */, |
| 134 bool /* result */, | 134 bool /* result */, |
| 135 gpu::Capabilities /* capabilities */) | 135 gpu::Capabilities /* capabilities */) |
| 136 | 136 |
| 137 // Sets the shared memory buffer used for commands. | 137 // Sets the shared memory buffer used for commands. |
| 138 IPC_SYNC_MESSAGE_ROUTED1_0(GpuCommandBufferMsg_SetGetBuffer, | 138 IPC_SYNC_MESSAGE_ROUTED1_0(GpuCommandBufferMsg_SetGetBuffer, |
| 139 int32_t /* shm_id */) | 139 int32_t /* shm_id */) |
| 140 | 140 |
| 141 // Takes the front buffer into a mailbox. This allows another context to draw | 141 // Produces the front buffer into a mailbox. This allows another context to draw |
| 142 // the output of this context. | 142 // the output of this context. |
| 143 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_TakeFrontBuffer, | 143 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_ProduceFrontBuffer, |
| 144 gpu::Mailbox /* mailbox */) | 144 gpu::Mailbox /* mailbox */) |
| 145 | 145 |
| 146 // Returns a front buffer taken with GpuCommandBufferMsg_TakeFrontBuffer. This | |
| 147 // allows it to be reused. | |
| 148 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_ReturnFrontBuffer, | |
| 149 gpu::Mailbox /* mailbox */, | |
| 150 bool /* is_lost */) | |
| 151 | |
| 152 // Wait until the token is in a specific range, inclusive. | 146 // Wait until the token is in a specific range, inclusive. |
| 153 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_WaitForTokenInRange, | 147 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_WaitForTokenInRange, |
| 154 int32_t /* start */, | 148 int32_t /* start */, |
| 155 int32_t /* end */, | 149 int32_t /* end */, |
| 156 gpu::CommandBuffer::State /* state */) | 150 gpu::CommandBuffer::State /* state */) |
| 157 | 151 |
| 158 // Wait until the get offset is in a specific range, inclusive. | 152 // Wait until the get offset is in a specific range, inclusive. |
| 159 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_WaitForGetOffsetInRange, | 153 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_WaitForGetOffsetInRange, |
| 160 int32_t /* start */, | 154 int32_t /* start */, |
| 161 int32_t /* end */, | 155 int32_t /* end */, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 // Tells the browser that SwapBuffers returned and passes latency info | 187 // Tells the browser that SwapBuffers returned and passes latency info |
| 194 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SwapBuffersCompleted, | 188 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SwapBuffersCompleted, |
| 195 std::vector<ui::LatencyInfo> /* latency_info */, | 189 std::vector<ui::LatencyInfo> /* latency_info */, |
| 196 gfx::SwapResult /* result */) | 190 gfx::SwapResult /* result */) |
| 197 | 191 |
| 198 // Tells the browser about updated parameters for vsync alignment. | 192 // Tells the browser about updated parameters for vsync alignment. |
| 199 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_UpdateVSyncParameters, | 193 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_UpdateVSyncParameters, |
| 200 base::TimeTicks /* timebase */, | 194 base::TimeTicks /* timebase */, |
| 201 base::TimeDelta /* interval */) | 195 base::TimeDelta /* interval */) |
| 202 | 196 |
| 203 // The receiver will stop processing messages until the Synctoken is signaled. | |
| 204 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_WaitSyncToken, | |
| 205 gpu::SyncToken /* sync_token */) | |
| 206 | |
| 207 // The receiver will asynchronously wait until the SyncToken is signaled, and | |
| 208 // then return a GpuCommandBufferMsg_SignalAck message. | |
| 209 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalSyncToken, | 197 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalSyncToken, |
| 210 gpu::SyncToken /* sync_token */, | 198 gpu::SyncToken /* sync_token */, |
| 211 uint32_t /* signal_id */) | 199 uint32_t /* signal_id */) |
| 212 | 200 |
| 213 // Makes this command buffer signal when a query is reached, by sending | 201 // Makes this command buffer signal when a query is reached, by sending |
| 214 // back a GpuCommandBufferMsg_SignalSyncPointAck message with the same | 202 // back a GpuCommandBufferMsg_SignalSyncPointAck message with the same |
| 215 // signal_id. | 203 // signal_id. |
| 216 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalQuery, | 204 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalQuery, |
| 217 uint32_t /* query */, | 205 uint32_t /* query */, |
| 218 uint32_t /* signal_id */) | 206 uint32_t /* signal_id */) |
| 219 | 207 |
| 220 // Response to SignalSyncPoint, SignalSyncToken, and SignalQuery. | 208 // Response to SignalSyncPoint, SignalSyncToken, and SignalQuery. |
| 221 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SignalAck, uint32_t /* signal_id */) | 209 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SignalAck, uint32_t /* signal_id */) |
| 222 | 210 |
| 223 // Create an image from an existing gpu memory buffer. The id that can be | 211 // Create an image from an existing gpu memory buffer. The id that can be |
| 224 // used to identify the image from a command buffer. | 212 // used to identify the image from a command buffer. |
| 225 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_CreateImage, | 213 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_CreateImage, |
| 226 GpuCommandBufferMsg_CreateImage_Params /* params */) | 214 GpuCommandBufferMsg_CreateImage_Params /* params */) |
| 227 | 215 |
| 228 // Destroy a previously created image. | 216 // Destroy a previously created image. |
| 229 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) | 217 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) |
| 230 | 218 |
| 231 // Attaches an external image stream to the client texture. | 219 // Attaches an external image stream to the client texture. |
| 232 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, | 220 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, |
| 233 uint32_t, /* client_texture_id */ | 221 uint32_t, /* client_texture_id */ |
| 234 int32_t, /* stream_id */ | 222 int32_t, /* stream_id */ |
| 235 bool /* succeeded */) | 223 bool /* succeeded */) |
| OLD | NEW |