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

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

Issue 1490333005: Don't require VDAs to return all PictureBuffers at once. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unit test. Created 5 years 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 IPC_STRUCT_TRAITS_MEMBER(profile) 220 IPC_STRUCT_TRAITS_MEMBER(profile)
221 IPC_STRUCT_TRAITS_MEMBER(is_encrypted) 221 IPC_STRUCT_TRAITS_MEMBER(is_encrypted)
222 IPC_STRUCT_TRAITS_END() 222 IPC_STRUCT_TRAITS_END()
223 223
224 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoDecodeAcceleratorSupportedProfile) 224 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoDecodeAcceleratorSupportedProfile)
225 IPC_STRUCT_TRAITS_MEMBER(profile) 225 IPC_STRUCT_TRAITS_MEMBER(profile)
226 IPC_STRUCT_TRAITS_MEMBER(max_resolution) 226 IPC_STRUCT_TRAITS_MEMBER(max_resolution)
227 IPC_STRUCT_TRAITS_MEMBER(min_resolution) 227 IPC_STRUCT_TRAITS_MEMBER(min_resolution)
228 IPC_STRUCT_TRAITS_END() 228 IPC_STRUCT_TRAITS_END()
229 229
230 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoDecodeAcceleratorCapabilities)
231 IPC_STRUCT_TRAITS_MEMBER(supported_profiles)
232 IPC_STRUCT_TRAITS_MEMBER(flags)
dcheng 2015/12/08 04:57:59 How does this work? I don't see an IPC_ENUM_TRAITS
liberato (no reviews please) 2015/12/08 15:55:57 because it's an int32. including video_decode_acc
dcheng 2015/12/09 01:41:50 Yeah, max value doesn't add much here, but I think
liberato (no reviews please) 2015/12/09 22:15:31 based on posciak@'s comments, the field is now a u
233 IPC_STRUCT_TRAITS_END()
234
230 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoEncodeAcceleratorSupportedProfile) 235 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoEncodeAcceleratorSupportedProfile)
231 IPC_STRUCT_TRAITS_MEMBER(profile) 236 IPC_STRUCT_TRAITS_MEMBER(profile)
232 IPC_STRUCT_TRAITS_MEMBER(max_resolution) 237 IPC_STRUCT_TRAITS_MEMBER(max_resolution)
233 IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator) 238 IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator)
234 IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator) 239 IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator)
235 IPC_STRUCT_TRAITS_END() 240 IPC_STRUCT_TRAITS_END()
236 241
237 IPC_STRUCT_TRAITS_BEGIN(gpu::GPUInfo) 242 IPC_STRUCT_TRAITS_BEGIN(gpu::GPUInfo)
238 IPC_STRUCT_TRAITS_MEMBER(initialization_time) 243 IPC_STRUCT_TRAITS_MEMBER(initialization_time)
239 IPC_STRUCT_TRAITS_MEMBER(optimus) 244 IPC_STRUCT_TRAITS_MEMBER(optimus)
(...skipping 23 matching lines...) Expand all
263 IPC_STRUCT_TRAITS_MEMBER(direct_rendering) 268 IPC_STRUCT_TRAITS_MEMBER(direct_rendering)
264 IPC_STRUCT_TRAITS_MEMBER(sandboxed) 269 IPC_STRUCT_TRAITS_MEMBER(sandboxed)
265 IPC_STRUCT_TRAITS_MEMBER(process_crash_count) 270 IPC_STRUCT_TRAITS_MEMBER(process_crash_count)
266 IPC_STRUCT_TRAITS_MEMBER(in_process_gpu) 271 IPC_STRUCT_TRAITS_MEMBER(in_process_gpu)
267 IPC_STRUCT_TRAITS_MEMBER(basic_info_state) 272 IPC_STRUCT_TRAITS_MEMBER(basic_info_state)
268 IPC_STRUCT_TRAITS_MEMBER(context_info_state) 273 IPC_STRUCT_TRAITS_MEMBER(context_info_state)
269 #if defined(OS_WIN) 274 #if defined(OS_WIN)
270 IPC_STRUCT_TRAITS_MEMBER(dx_diagnostics_info_state) 275 IPC_STRUCT_TRAITS_MEMBER(dx_diagnostics_info_state)
271 IPC_STRUCT_TRAITS_MEMBER(dx_diagnostics) 276 IPC_STRUCT_TRAITS_MEMBER(dx_diagnostics)
272 #endif 277 #endif
273 IPC_STRUCT_TRAITS_MEMBER(video_decode_accelerator_supported_profiles) 278 IPC_STRUCT_TRAITS_MEMBER(video_decode_accelerator_capabilities)
274 IPC_STRUCT_TRAITS_MEMBER(video_encode_accelerator_supported_profiles) 279 IPC_STRUCT_TRAITS_MEMBER(video_encode_accelerator_supported_profiles)
275 IPC_STRUCT_TRAITS_MEMBER(jpeg_decode_accelerator_supported) 280 IPC_STRUCT_TRAITS_MEMBER(jpeg_decode_accelerator_supported)
276 IPC_STRUCT_TRAITS_END() 281 IPC_STRUCT_TRAITS_END()
277 282
278 IPC_STRUCT_TRAITS_BEGIN(content::GPUVideoMemoryUsageStats::ProcessStats) 283 IPC_STRUCT_TRAITS_BEGIN(content::GPUVideoMemoryUsageStats::ProcessStats)
279 IPC_STRUCT_TRAITS_MEMBER(video_memory) 284 IPC_STRUCT_TRAITS_MEMBER(video_memory)
280 IPC_STRUCT_TRAITS_MEMBER(has_duplicates) 285 IPC_STRUCT_TRAITS_MEMBER(has_duplicates)
281 IPC_STRUCT_TRAITS_END() 286 IPC_STRUCT_TRAITS_END()
282 287
283 IPC_STRUCT_TRAITS_BEGIN(content::GPUVideoMemoryUsageStats) 288 IPC_STRUCT_TRAITS_BEGIN(content::GPUVideoMemoryUsageStats)
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) 837 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy)
833 838
834 //------------------------------------------------------------------------------ 839 //------------------------------------------------------------------------------
835 // Accelerated JPEG Decoder Host Messages 840 // Accelerated JPEG Decoder Host Messages
836 // These messages are sent from the GPU process to Browser process. 841 // These messages are sent from the GPU process to Browser process.
837 // 842 //
838 // Report decode status. 843 // Report decode status.
839 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, 844 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck,
840 int32, /* bitstream_buffer_id */ 845 int32, /* bitstream_buffer_id */
841 media::JpegDecodeAccelerator::Error /* error */) 846 media::JpegDecodeAccelerator::Error /* error */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698