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 #include <vector> | 5 #include <vector> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/shared_memory.h" | 8 #include "base/shared_memory.h" |
9 #include "chrome/common/gpu_info.h" | 9 #include "chrome/common/gpu_info.h" |
10 #include "chrome/common/gpu_video_common.h" | 10 #include "chrome/common/gpu_video_common.h" |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 IPC_SYNC_MESSAGE_CONTROL1_0(GpuChannelMsg_DestroyVideoDecoder, | 218 IPC_SYNC_MESSAGE_CONTROL1_0(GpuChannelMsg_DestroyVideoDecoder, |
219 int32 /* decoder_id */) | 219 int32 /* decoder_id */) |
220 | 220 |
221 //------------------------------------------------------------------------------ | 221 //------------------------------------------------------------------------------ |
222 // GPU Command Buffer Messages | 222 // GPU Command Buffer Messages |
223 // These are messages between a renderer process to the GPU process relating to | 223 // These are messages between a renderer process to the GPU process relating to |
224 // a single OpenGL context. | 224 // a single OpenGL context. |
225 // Initialize a command buffer with the given number of command entries. | 225 // Initialize a command buffer with the given number of command entries. |
226 // Returns the shared memory handle for the command buffer mapped to the | 226 // Returns the shared memory handle for the command buffer mapped to the |
227 // calling process. | 227 // calling process. |
228 IPC_SYNC_MESSAGE_ROUTED1_1(GpuCommandBufferMsg_Initialize, | 228 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_Initialize, |
| 229 base::SharedMemoryHandle /* ring_buffer */, |
229 int32 /* size */, | 230 int32 /* size */, |
230 base::SharedMemoryHandle /* ring_buffer */) | 231 bool /* result */) |
231 | 232 |
232 // Get the current state of the command buffer. | 233 // Get the current state of the command buffer. |
233 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_GetState, | 234 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_GetState, |
234 gpu::CommandBuffer::State /* state */) | 235 gpu::CommandBuffer::State /* state */) |
235 | 236 |
236 // Get the current state of the command buffer asynchronously. State is | 237 // Get the current state of the command buffer asynchronously. State is |
237 // returned via UpdateState message. | 238 // returned via UpdateState message. |
238 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_AsyncGetState) | 239 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_AsyncGetState) |
239 | 240 |
240 // Synchronize the put and get offsets of both processes. Caller passes its | 241 // Synchronize the put and get offsets of both processes. Caller passes its |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 // Release all video frames allocated for a hardware video decoder. | 378 // Release all video frames allocated for a hardware video decoder. |
378 IPC_MESSAGE_ROUTED0(GpuVideoDecoderHostMsg_ReleaseAllVideoFrames) | 379 IPC_MESSAGE_ROUTED0(GpuVideoDecoderHostMsg_ReleaseAllVideoFrames) |
379 | 380 |
380 // GpuVideoDecoder report output format change. | 381 // GpuVideoDecoder report output format change. |
381 IPC_MESSAGE_ROUTED1(GpuVideoDecoderHostMsg_MediaFormatChange, | 382 IPC_MESSAGE_ROUTED1(GpuVideoDecoderHostMsg_MediaFormatChange, |
382 GpuVideoDecoderFormatChangeParam) | 383 GpuVideoDecoderFormatChangeParam) |
383 | 384 |
384 // GpuVideoDecoder report error. | 385 // GpuVideoDecoder report error. |
385 IPC_MESSAGE_ROUTED1(GpuVideoDecoderHostMsg_ErrorNotification, | 386 IPC_MESSAGE_ROUTED1(GpuVideoDecoderHostMsg_ErrorNotification, |
386 GpuVideoDecoderErrorInfoParam) | 387 GpuVideoDecoderErrorInfoParam) |
OLD | NEW |