Index: content/common/gpu/media/v4l2_device.h |
diff --git a/content/common/gpu/media/v4l2_device.h b/content/common/gpu/media/v4l2_device.h |
index df6b59822a6b56df58b565fb7a877f1ed01107a8..d66413c43a3631184862198427bf4cf8b7e4c316 100644 |
--- a/content/common/gpu/media/v4l2_device.h |
+++ b/content/common/gpu/media/v4l2_device.h |
@@ -123,6 +123,13 @@ class CONTENT_EXPORT V4L2Device |
media::VideoDecodeAccelerator::SupportedProfiles GetSupportedDecodeProfiles( |
const size_t num_formats, const uint32_t pixelformats[]); |
+ // Return true if the device supports |profile|, taking into account only |
+ // fourccs from the given array of |pixelformats| of size |num_formats|. |
+ bool SupportsDecodeProfileForV4L2PixelFormats( |
+ media::VideoCodecProfile profile, |
+ const size_t num_formats, |
+ const uint32_t pixelformats[]); |
+ |
protected: |
friend class base::RefCountedThreadSafe<V4L2Device>; |
explicit V4L2Device(Type type); |