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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 // Get the current state of the command buffer. | 334 // Get the current state of the command buffer. |
335 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_GetState, | 335 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_GetState, |
336 gpu::CommandBuffer::State /* state */) | 336 gpu::CommandBuffer::State /* state */) |
337 | 337 |
338 // Get the current state of the command buffer asynchronously. State is | 338 // Get the current state of the command buffer asynchronously. State is |
339 // returned via UpdateState message. | 339 // returned via UpdateState message. |
340 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_AsyncGetState) | 340 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_AsyncGetState) |
341 | 341 |
342 // Synchronize the put and get offsets of both processes. Caller passes its | 342 // Synchronize the put and get offsets of both processes. Caller passes its |
343 // current put offset. Current state (including get offset) is returned. | 343 // current put offset. Current state (including get offset) is returned. |
344 IPC_SYNC_MESSAGE_ROUTED1_1(GpuCommandBufferMsg_Flush, | 344 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_Flush, |
345 int32 /* put_offset */, | 345 int32 /* put_offset */, |
| 346 int32 /* last_known_get */, |
346 gpu::CommandBuffer::State /* state */) | 347 gpu::CommandBuffer::State /* state */) |
347 | 348 |
348 // Asynchronously synchronize the put and get offsets of both processes. | 349 // Asynchronously synchronize the put and get offsets of both processes. |
349 // Caller passes its current put offset. Current state (including get offset) | 350 // Caller passes its current put offset. Current state (including get offset) |
350 // is returned via an UpdateState message. | 351 // is returned via an UpdateState message. |
351 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_AsyncFlush, | 352 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_AsyncFlush, |
352 int32 /* put_offset */) | 353 int32 /* put_offset */) |
353 | 354 |
354 // Return the current state of the command buffer following a request via | 355 // Return the current state of the command buffer following a request via |
355 // an AsyncGetState or AsyncFlush message. (This message is sent from the | 356 // an AsyncGetState or AsyncFlush message. (This message is sent from the |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 | 594 |
594 // Confirm decoder has been aborted. | 595 // Confirm decoder has been aborted. |
595 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_AbortDone) | 596 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_AbortDone) |
596 | 597 |
597 // Decoder has faced end of stream marker in the stream. | 598 // Decoder has faced end of stream marker in the stream. |
598 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) | 599 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) |
599 | 600 |
600 // Video decoder has encountered an error. | 601 // Video decoder has encountered an error. |
601 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 602 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
602 uint32) /* Error ID */ | 603 uint32) /* Error ID */ |
OLD | NEW |