Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1192)

Side by Side Diff: content/common/gpu/gpu_messages.h

Issue 10510013: GPU: Adding sync points for cross-channel synchronization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: protected destructor Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 451
452 // Sent to proxy when the gpu memory manager changes its memory allocation. 452 // Sent to proxy when the gpu memory manager changes its memory allocation.
453 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetMemoryAllocation, 453 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetMemoryAllocation,
454 GpuMemoryAllocationForRenderer /* allocation */) 454 GpuMemoryAllocationForRenderer /* allocation */)
455 455
456 // Sent to stub when proxy is assigned a memory allocation changed callback. 456 // Sent to stub when proxy is assigned a memory allocation changed callback.
457 IPC_MESSAGE_ROUTED1( 457 IPC_MESSAGE_ROUTED1(
458 GpuCommandBufferMsg_SetClientHasMemoryAllocationChangedCallback, 458 GpuCommandBufferMsg_SetClientHasMemoryAllocationChangedCallback,
459 bool /* has_callback */) 459 bool /* has_callback */)
460 460
461 // Inserts a sync point into the channel. This is handled on the IO thread, so
462 // can be expected to be reasonably fast, but the sync point is actually
463 // retired in order with respect to the other calls. The sync point is shared
464 // across channels.
465 IPC_SYNC_MESSAGE_ROUTED0_1(GpuCommandBufferMsg_InsertSyncPoint,
466 uint32 /* sync_point */)
467
468 // Retires the sync point. Note: this message is not sent explicitly by the
469 // renderer, but is synthesized by the GPU process.
470 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_RetireSyncPoint,
471 uint32 /* sync_point */)
472
473 // Makes this command buffer wait on a sync point. Command buffer message
474 // execution will be delayed until the sync point has been reached.
475 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_WaitSyncPoint,
476 uint32 /* sync_point */)
477
461 //------------------------------------------------------------------------------ 478 //------------------------------------------------------------------------------
462 // Accelerated Video Decoder Messages 479 // Accelerated Video Decoder Messages
463 // These messages are sent from Renderer process to GPU process. 480 // These messages are sent from Renderer process to GPU process.
464 481
465 // Send input buffer for decoding. 482 // Send input buffer for decoding.
466 IPC_MESSAGE_ROUTED3(AcceleratedVideoDecoderMsg_Decode, 483 IPC_MESSAGE_ROUTED3(AcceleratedVideoDecoderMsg_Decode,
467 base::SharedMemoryHandle, /* input_buffer_handle */ 484 base::SharedMemoryHandle, /* input_buffer_handle */
468 int32, /* bitstream_buffer_id */ 485 int32, /* bitstream_buffer_id */
469 int32) /* size */ 486 int32) /* size */
470 487
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 533
517 // Confirm decoder has been flushed. 534 // Confirm decoder has been flushed.
518 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) 535 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone)
519 536
520 // Confirm decoder has been reset. 537 // Confirm decoder has been reset.
521 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) 538 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone)
522 539
523 // Video decoder has encountered an error. 540 // Video decoder has encountered an error.
524 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, 541 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification,
525 uint32) /* Error ID */ 542 uint32) /* Error ID */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698