Chromium Code Reviews| Index: content/common/gpu/media/vaapi_wrapper.h |
| diff --git a/content/common/gpu/media/vaapi_wrapper.h b/content/common/gpu/media/vaapi_wrapper.h |
| index f600cdfa1d17198d00f4fd67b4b59767ea60795e..e28c82896582ada24910f786ae66c97d79a0988a 100644 |
| --- a/content/common/gpu/media/vaapi_wrapper.h |
| +++ b/content/common/gpu/media/vaapi_wrapper.h |
| @@ -50,6 +50,11 @@ class CONTENT_EXPORT VaapiWrapper { |
| Display* x_display, |
| const base::Closure& report_error_to_uma_cb); |
| + // Return the supported profiles. |
| + static std::vector<media::VideoCodecProfile> GetSupportedProfiles( |
|
Pawel Osciak
2014/09/26 07:15:12
GetSupportedEncodeProfiles
wuchengli
2014/09/26 09:02:28
Done.
|
| + Display* x_display, |
| + const base::Closure& report_error_to_uma_cb); |
| + |
| ~VaapiWrapper(); |
| // Create |num_surfaces| backing surfaces in driver for VASurfaces, each |
| @@ -140,8 +145,15 @@ class CONTENT_EXPORT VaapiWrapper { |
| bool Initialize(CodecMode mode, |
| media::VideoCodecProfile profile, |
| Display* x_display, |
| - const base::Closure& report_error__to_uma_cb); |
| + const base::Closure& report_error_to_uma_cb); |
| void Deinitialize(); |
| + bool VaInitialize(Display* x_display, |
| + const base::Closure& report_error_to_uma_cb); |
| + bool GetSupportedVaProfiles(std::vector<VAProfile>* profiles); |
| + bool IsEntrypointSupported(VAProfile va_profile, VAEntrypoint entrypoint); |
| + bool IsAttribSupported(VAProfile va_profile, |
| + VAEntrypoint entrypoint, |
| + const std::vector<VAConfigAttrib>& required_attribs); |
| // Execute pending job in hardware and destroy pending buffers. Return false |
| // if vaapi driver refuses to accept parameter or slice buffers submitted |