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

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

Issue 795633005: Add VDA supported profile to GPUInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address patch 19 Created 5 years, 9 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 gpu::VIDEO_CODEC_PROFILE_MAX) 71 gpu::VIDEO_CODEC_PROFILE_MAX)
72 72
73 IPC_STRUCT_BEGIN(GPUCreateCommandBufferConfig) 73 IPC_STRUCT_BEGIN(GPUCreateCommandBufferConfig)
74 IPC_STRUCT_MEMBER(int32, share_group_id) 74 IPC_STRUCT_MEMBER(int32, share_group_id)
75 IPC_STRUCT_MEMBER(std::vector<int>, attribs) 75 IPC_STRUCT_MEMBER(std::vector<int>, attribs)
76 IPC_STRUCT_MEMBER(GURL, active_url) 76 IPC_STRUCT_MEMBER(GURL, active_url)
77 IPC_STRUCT_MEMBER(gfx::GpuPreference, gpu_preference) 77 IPC_STRUCT_MEMBER(gfx::GpuPreference, gpu_preference)
78 IPC_STRUCT_END() 78 IPC_STRUCT_END()
79 79
80 IPC_STRUCT_BEGIN(GpuMsg_CreateGpuMemoryBuffer_Params) 80 IPC_STRUCT_BEGIN(GpuMsg_CreateGpuMemoryBuffer_Params)
81 IPC_STRUCT_MEMBER(int32, id) 81 IPC_STRUCT_MEMBER(int32, id)
82 IPC_STRUCT_MEMBER(gfx::Size, size) 82 IPC_STRUCT_MEMBER(gfx::Size, size)
83 IPC_STRUCT_MEMBER(gfx::GpuMemoryBuffer::Format, format) 83 IPC_STRUCT_MEMBER(gfx::GpuMemoryBuffer::Format, format)
84 IPC_STRUCT_MEMBER(gfx::GpuMemoryBuffer::Usage, usage) 84 IPC_STRUCT_MEMBER(gfx::GpuMemoryBuffer::Usage, usage)
85 IPC_STRUCT_MEMBER(int32, client_id) 85 IPC_STRUCT_MEMBER(int32, client_id)
86 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, surface_handle) 86 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, surface_handle)
87 IPC_STRUCT_END() 87 IPC_STRUCT_END()
88 88
89 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) 89 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params)
90 IPC_STRUCT_MEMBER(int32, surface_id) 90 IPC_STRUCT_MEMBER(int32, surface_id)
91 IPC_STRUCT_MEMBER(uint64, surface_handle) 91 IPC_STRUCT_MEMBER(uint64, surface_handle)
92 IPC_STRUCT_MEMBER(int32, route_id) 92 IPC_STRUCT_MEMBER(int32, route_id)
93 IPC_STRUCT_MEMBER(gfx::Size, size) 93 IPC_STRUCT_MEMBER(gfx::Size, size)
94 IPC_STRUCT_MEMBER(float, scale_factor) 94 IPC_STRUCT_MEMBER(float, scale_factor)
95 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) 95 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info)
96 IPC_STRUCT_END() 96 IPC_STRUCT_END()
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 IPC_STRUCT_TRAITS_END() 139 IPC_STRUCT_TRAITS_END()
140 140
141 IPC_STRUCT_TRAITS_BEGIN(gpu::GPUInfo::GPUDevice) 141 IPC_STRUCT_TRAITS_BEGIN(gpu::GPUInfo::GPUDevice)
142 IPC_STRUCT_TRAITS_MEMBER(vendor_id) 142 IPC_STRUCT_TRAITS_MEMBER(vendor_id)
143 IPC_STRUCT_TRAITS_MEMBER(device_id) 143 IPC_STRUCT_TRAITS_MEMBER(device_id)
144 IPC_STRUCT_TRAITS_MEMBER(active) 144 IPC_STRUCT_TRAITS_MEMBER(active)
145 IPC_STRUCT_TRAITS_MEMBER(vendor_string) 145 IPC_STRUCT_TRAITS_MEMBER(vendor_string)
146 IPC_STRUCT_TRAITS_MEMBER(device_string) 146 IPC_STRUCT_TRAITS_MEMBER(device_string)
147 IPC_STRUCT_TRAITS_END() 147 IPC_STRUCT_TRAITS_END()
148 148
149 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoDecodeAcceleratorSupportedProfile)
150 IPC_STRUCT_TRAITS_MEMBER(profile)
151 IPC_STRUCT_TRAITS_MEMBER(max_resolution)
152 IPC_STRUCT_TRAITS_MEMBER(min_resolution)
153 IPC_STRUCT_TRAITS_END()
154
149 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoEncodeAcceleratorSupportedProfile) 155 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoEncodeAcceleratorSupportedProfile)
150 IPC_STRUCT_TRAITS_MEMBER(profile) 156 IPC_STRUCT_TRAITS_MEMBER(profile)
151 IPC_STRUCT_TRAITS_MEMBER(max_resolution) 157 IPC_STRUCT_TRAITS_MEMBER(max_resolution)
152 IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator) 158 IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator)
153 IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator) 159 IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator)
154 IPC_STRUCT_TRAITS_END() 160 IPC_STRUCT_TRAITS_END()
155 161
156 IPC_STRUCT_TRAITS_BEGIN(gpu::GPUInfo) 162 IPC_STRUCT_TRAITS_BEGIN(gpu::GPUInfo)
157 IPC_STRUCT_TRAITS_MEMBER(initialization_time) 163 IPC_STRUCT_TRAITS_MEMBER(initialization_time)
158 IPC_STRUCT_TRAITS_MEMBER(optimus) 164 IPC_STRUCT_TRAITS_MEMBER(optimus)
(...skipping 21 matching lines...) Expand all
180 IPC_STRUCT_TRAITS_MEMBER(software_rendering) 186 IPC_STRUCT_TRAITS_MEMBER(software_rendering)
181 IPC_STRUCT_TRAITS_MEMBER(direct_rendering) 187 IPC_STRUCT_TRAITS_MEMBER(direct_rendering)
182 IPC_STRUCT_TRAITS_MEMBER(sandboxed) 188 IPC_STRUCT_TRAITS_MEMBER(sandboxed)
183 IPC_STRUCT_TRAITS_MEMBER(process_crash_count) 189 IPC_STRUCT_TRAITS_MEMBER(process_crash_count)
184 IPC_STRUCT_TRAITS_MEMBER(basic_info_state) 190 IPC_STRUCT_TRAITS_MEMBER(basic_info_state)
185 IPC_STRUCT_TRAITS_MEMBER(context_info_state) 191 IPC_STRUCT_TRAITS_MEMBER(context_info_state)
186 #if defined(OS_WIN) 192 #if defined(OS_WIN)
187 IPC_STRUCT_TRAITS_MEMBER(dx_diagnostics_info_state) 193 IPC_STRUCT_TRAITS_MEMBER(dx_diagnostics_info_state)
188 IPC_STRUCT_TRAITS_MEMBER(dx_diagnostics) 194 IPC_STRUCT_TRAITS_MEMBER(dx_diagnostics)
189 #endif 195 #endif
196 IPC_STRUCT_TRAITS_MEMBER(video_decode_accelerator_supported_profiles)
190 IPC_STRUCT_TRAITS_MEMBER(video_encode_accelerator_supported_profiles) 197 IPC_STRUCT_TRAITS_MEMBER(video_encode_accelerator_supported_profiles)
191 IPC_STRUCT_TRAITS_END() 198 IPC_STRUCT_TRAITS_END()
192 199
193 IPC_STRUCT_TRAITS_BEGIN(content::GPUVideoMemoryUsageStats::ProcessStats) 200 IPC_STRUCT_TRAITS_BEGIN(content::GPUVideoMemoryUsageStats::ProcessStats)
194 IPC_STRUCT_TRAITS_MEMBER(video_memory) 201 IPC_STRUCT_TRAITS_MEMBER(video_memory)
195 IPC_STRUCT_TRAITS_MEMBER(has_duplicates) 202 IPC_STRUCT_TRAITS_MEMBER(has_duplicates)
196 IPC_STRUCT_TRAITS_END() 203 IPC_STRUCT_TRAITS_END()
197 204
198 IPC_STRUCT_TRAITS_BEGIN(content::GPUVideoMemoryUsageStats) 205 IPC_STRUCT_TRAITS_BEGIN(content::GPUVideoMemoryUsageStats)
199 IPC_STRUCT_TRAITS_MEMBER(process_map) 206 IPC_STRUCT_TRAITS_MEMBER(process_map)
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 int32 /* bitstream_buffer_id */, 741 int32 /* bitstream_buffer_id */,
735 uint32 /* payload_size */, 742 uint32 /* payload_size */,
736 bool /* key_frame */) 743 bool /* key_frame */)
737 744
738 // Report error condition. 745 // Report error condition.
739 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, 746 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError,
740 media::VideoEncodeAccelerator::Error /* error */) 747 media::VideoEncodeAccelerator::Error /* error */)
741 748
742 // Send destroy request to the encoder. 749 // Send destroy request to the encoder.
743 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) 750 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698