Index: gpu/config/gpu_info.h |
diff --git a/gpu/config/gpu_info.h b/gpu/config/gpu_info.h |
index 7c92d3ae7d702cf73410787b4f77a95e4ede9cf2..ad90a864f076aad3df4488515ee13adb3236f5e2 100644 |
--- a/gpu/config/gpu_info.h |
+++ b/gpu/config/gpu_info.h |
@@ -55,6 +55,13 @@ enum VideoCodecProfile { |
VIDEO_CODEC_PROFILE_MAX = VP9PROFILE_ANY, |
}; |
+// Specification of a decoding profile supported by a hardware decoder. |
+struct GPU_EXPORT VideoDecodeAcceleratorSupportedProfile { |
+ VideoCodecProfile profile; |
+ gfx::Size max_resolution; |
+ gfx::Size min_resolution; |
+}; |
+ |
// Specification of an encoding profile supported by a hardware encoder. |
struct GPU_EXPORT VideoEncodeAcceleratorSupportedProfile { |
VideoCodecProfile profile; |
@@ -206,6 +213,14 @@ struct GPU_EXPORT GPUInfo { |
DxDiagNode dx_diagnostics; |
#endif |
+ // Whether the platform supports to query video decoder profiles. Currently |
+ // only CrOS supports to query video decoder supported profiles. If |
wuchengli
2015/03/19 15:02:57
Remove "Currently only CrOS supports to query vide
henryhsu
2015/03/23 03:21:07
Done.
|
+ // |supported_query_video_decode_profiles| is true, |
+ // |video_decode_accelerator_supported_profiles| is the profiles supported by |
+ // the platform. Otherwise, it is invalid. |
+ bool support_query_video_decode_profiles; |
piman
2015/03/19 20:46:09
Why do we do this?
If this is false, we hardcode t
henryhsu
2015/03/23 03:21:07
Done.
|
+ std::vector<VideoDecodeAcceleratorSupportedProfile> |
+ video_decode_accelerator_supported_profiles; |
std::vector<VideoEncodeAcceleratorSupportedProfile> |
video_encode_accelerator_supported_profiles; |
// Note: when adding new members, please remember to update EnumerateFields |
@@ -232,6 +247,11 @@ struct GPU_EXPORT GPUInfo { |
virtual void BeginGPUDevice() = 0; |
virtual void EndGPUDevice() = 0; |
+ // Markers indicating that a VideoDecodeAcceleratorSupportedProfile is |
+ // being described. |
+ virtual void BeginVideoDecodeAcceleratorSupportedProfile() = 0; |
+ virtual void EndVideoDecodeAcceleratorSupportedProfile() = 0; |
+ |
// Markers indicating that a VideoEncodeAcceleratorSupportedProfile is |
// being described. |
virtual void BeginVideoEncodeAcceleratorSupportedProfile() = 0; |