| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 8 |
| 9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
| 10 #include "content/common/common_param_traits.h" | 10 #include "content/common/common_param_traits.h" |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 // calling process. | 335 // calling process. |
| 336 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_Initialize, | 336 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_Initialize, |
| 337 base::SharedMemoryHandle /* ring_buffer */, | 337 base::SharedMemoryHandle /* ring_buffer */, |
| 338 int32 /* size */, | 338 int32 /* size */, |
| 339 bool /* result */) | 339 bool /* result */) |
| 340 | 340 |
| 341 // Get the current state of the command buffer. | 341 // Get the current state of the command buffer. |
| 342 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_GetState, | 342 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_GetState, |
| 343 gpu::CommandBuffer::State /* state */) | 343 gpu::CommandBuffer::State /* state */) |
| 344 | 344 |
| 345 // Get the current state of the command buffer asynchronously. State is | |
| 346 // returned via UpdateState message. | |
| 347 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_AsyncGetState) | |
| 348 | |
| 349 // Synchronize the put and get offsets of both processes. Caller passes its | 345 // Synchronize the put and get offsets of both processes. Caller passes its |
| 350 // current put offset. Current state (including get offset) is returned. | 346 // current put offset. Current state (including get offset) is returned. |
| 351 IPC_SYNC_MESSAGE_ROUTED1_1(GpuCommandBufferMsg_Flush, | 347 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_Flush, |
| 352 int32 /* put_offset */, | 348 int32 /* put_offset */, |
| 349 int32 /* last_known_get */, |
| 353 gpu::CommandBuffer::State /* state */) | 350 gpu::CommandBuffer::State /* state */) |
| 354 | 351 |
| 355 // Asynchronously synchronize the put and get offsets of both processes. | 352 // Asynchronously synchronize the put and get offsets of both processes. |
| 356 // Caller passes its current put offset. Current state (including get offset) | 353 // Caller passes its current put offset. Current state (including get offset) |
| 357 // is returned via an UpdateState message. | 354 // is returned via an UpdateState message. |
| 358 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_AsyncFlush, | 355 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_AsyncFlush, |
| 359 int32 /* put_offset */) | 356 int32 /* put_offset */) |
| 360 | 357 |
| 361 // Return the current state of the command buffer following a request via | 358 // Return the current state of the command buffer following a request via |
| 362 // an AsyncGetState or AsyncFlush message. (This message is sent from the | 359 // an AsyncGetState or AsyncFlush message. (This message is sent from the |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 | 597 |
| 601 // Confirm decoder has been aborted. | 598 // Confirm decoder has been aborted. |
| 602 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_AbortDone) | 599 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_AbortDone) |
| 603 | 600 |
| 604 // Decoder has faced end of stream marker in the stream. | 601 // Decoder has faced end of stream marker in the stream. |
| 605 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) | 602 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) |
| 606 | 603 |
| 607 // Video decoder has encountered an error. | 604 // Video decoder has encountered an error. |
| 608 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 605 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
| 609 uint32) /* Error ID */ | 606 uint32) /* Error ID */ |
| OLD | NEW |