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

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

Issue 877353002: media: VideoFrame: add offset for shared memory buffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify shm pointer computation Created 5 years, 10 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
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 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 // Video decoder has encountered an error. 703 // Video decoder has encountered an error.
704 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, 704 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification,
705 uint32) /* Error ID */ 705 uint32) /* Error ID */
706 706
707 //------------------------------------------------------------------------------ 707 //------------------------------------------------------------------------------
708 // Accelerated Video Encoder Messages 708 // Accelerated Video Encoder Messages
709 // These messages are sent from the Renderer process to GPU process. 709 // These messages are sent from the Renderer process to GPU process.
710 710
711 // Queue a input buffer to the encoder to encode. |frame_id| will be returned by 711 // Queue a input buffer to the encoder to encode. |frame_id| will be returned by
712 // AcceleratedVideoEncoderHostMsg_NotifyInputDone. 712 // AcceleratedVideoEncoderHostMsg_NotifyInputDone.
713 IPC_MESSAGE_ROUTED4(AcceleratedVideoEncoderMsg_Encode, 713 IPC_MESSAGE_ROUTED5(AcceleratedVideoEncoderMsg_Encode,
714 int32 /* frame_id */, 714 int32 /* frame_id */,
715 base::SharedMemoryHandle /* buffer_handle */, 715 base::SharedMemoryHandle /* buffer_handle */,
716 uint32 /* buffer_offset */,
716 uint32 /* buffer_size */, 717 uint32 /* buffer_size */,
717 bool /* force_keyframe */) 718 bool /* force_keyframe */)
718 719
719 // Queue a buffer to the encoder for use in returning output. |buffer_id| will 720 // Queue a buffer to the encoder for use in returning output. |buffer_id| will
720 // be returned by AcceleratedVideoEncoderHostMsg_BitstreamBufferReady. 721 // be returned by AcceleratedVideoEncoderHostMsg_BitstreamBufferReady.
721 IPC_MESSAGE_ROUTED3(AcceleratedVideoEncoderMsg_UseOutputBitstreamBuffer, 722 IPC_MESSAGE_ROUTED3(AcceleratedVideoEncoderMsg_UseOutputBitstreamBuffer,
722 int32 /* buffer_id */, 723 int32 /* buffer_id */,
723 base::SharedMemoryHandle /* buffer_handle */, 724 base::SharedMemoryHandle /* buffer_handle */,
724 uint32 /* buffer_size */) 725 uint32 /* buffer_size */)
725 726
(...skipping 24 matching lines...) Expand all
750 int32 /* bitstream_buffer_id */, 751 int32 /* bitstream_buffer_id */,
751 uint32 /* payload_size */, 752 uint32 /* payload_size */,
752 bool /* key_frame */) 753 bool /* key_frame */)
753 754
754 // Report error condition. 755 // Report error condition.
755 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, 756 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError,
756 media::VideoEncodeAccelerator::Error /* error */) 757 media::VideoEncodeAccelerator::Error /* error */)
757 758
758 // Send destroy request to the encoder. 759 // Send destroy request to the encoder.
759 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) 760 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698