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

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

Issue 1541353002: Add offset support to BitstreamBuffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comment and fix one flush issue Created 4 years, 11 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 IPC_STRUCT_MEMBER(base::TimeTicks, vsync_timebase) 132 IPC_STRUCT_MEMBER(base::TimeTicks, vsync_timebase)
133 IPC_STRUCT_MEMBER(base::TimeDelta, vsync_interval) 133 IPC_STRUCT_MEMBER(base::TimeDelta, vsync_interval)
134 IPC_STRUCT_END() 134 IPC_STRUCT_END()
135 #endif 135 #endif
136 136
137 IPC_STRUCT_BEGIN(AcceleratedJpegDecoderMsg_Decode_Params) 137 IPC_STRUCT_BEGIN(AcceleratedJpegDecoderMsg_Decode_Params)
138 IPC_STRUCT_MEMBER(int32_t, input_buffer_id) 138 IPC_STRUCT_MEMBER(int32_t, input_buffer_id)
139 IPC_STRUCT_MEMBER(gfx::Size, coded_size) 139 IPC_STRUCT_MEMBER(gfx::Size, coded_size)
140 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, input_buffer_handle) 140 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, input_buffer_handle)
141 IPC_STRUCT_MEMBER(uint32_t, input_buffer_size) 141 IPC_STRUCT_MEMBER(uint32_t, input_buffer_size)
142 IPC_STRUCT_MEMBER(uint32_t, input_buffer_offset)
142 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, output_video_frame_handle) 143 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, output_video_frame_handle)
143 IPC_STRUCT_MEMBER(uint32_t, output_buffer_size) 144 IPC_STRUCT_MEMBER(uint32_t, output_buffer_size)
144 IPC_STRUCT_END() 145 IPC_STRUCT_END()
145 146
146 IPC_STRUCT_BEGIN(AcceleratedVideoDecoderMsg_Decode_Params) 147 IPC_STRUCT_BEGIN(AcceleratedVideoDecoderMsg_Decode_Params)
147 IPC_STRUCT_MEMBER(int32_t, bitstream_buffer_id) 148 IPC_STRUCT_MEMBER(int32_t, bitstream_buffer_id)
148 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, buffer_handle) 149 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, buffer_handle)
149 IPC_STRUCT_MEMBER(uint32_t, size) 150 IPC_STRUCT_MEMBER(uint32_t, size)
151 IPC_STRUCT_MEMBER(uint32_t, offset)
150 IPC_STRUCT_MEMBER(base::TimeDelta, presentation_timestamp) 152 IPC_STRUCT_MEMBER(base::TimeDelta, presentation_timestamp)
151 IPC_STRUCT_MEMBER(std::string, key_id) 153 IPC_STRUCT_MEMBER(std::string, key_id)
152 IPC_STRUCT_MEMBER(std::string, iv) 154 IPC_STRUCT_MEMBER(std::string, iv)
153 IPC_STRUCT_MEMBER(std::vector<media::SubsampleEntry>, subsamples) 155 IPC_STRUCT_MEMBER(std::vector<media::SubsampleEntry>, subsamples)
154 IPC_STRUCT_END() 156 IPC_STRUCT_END()
155 157
156 IPC_STRUCT_BEGIN(AcceleratedVideoEncoderMsg_Encode_Params) 158 IPC_STRUCT_BEGIN(AcceleratedVideoEncoderMsg_Encode_Params)
157 IPC_STRUCT_MEMBER(int32_t, frame_id) 159 IPC_STRUCT_MEMBER(int32_t, frame_id)
158 IPC_STRUCT_MEMBER(base::TimeDelta, timestamp) 160 IPC_STRUCT_MEMBER(base::TimeDelta, timestamp)
159 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, buffer_handle) 161 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, buffer_handle)
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) 837 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy)
836 838
837 //------------------------------------------------------------------------------ 839 //------------------------------------------------------------------------------
838 // Accelerated JPEG Decoder Host Messages 840 // Accelerated JPEG Decoder Host Messages
839 // These messages are sent from the GPU process to Browser process. 841 // These messages are sent from the GPU process to Browser process.
840 // 842 //
841 // Report decode status. 843 // Report decode status.
842 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, 844 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck,
843 int32_t, /* bitstream_buffer_id */ 845 int32_t, /* bitstream_buffer_id */
844 media::JpegDecodeAccelerator::Error /* error */) 846 media::JpegDecodeAccelerator::Error /* error */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698