| Index: media/base/android/media_codec_util.h
|
| diff --git a/media/base/android/media_codec_util.h b/media/base/android/media_codec_util.h
|
| index 3bf0e5377235f7a7a52613e01d4683620f5b19e8..43650235d24d6fdf7e2ffcd97d41ce87d764331f 100644
|
| --- a/media/base/android/media_codec_util.h
|
| +++ b/media/base/android/media_codec_util.h
|
| @@ -47,6 +47,13 @@ class MEDIA_EXPORT MediaCodecUtil {
|
| // to check IsAvailable() explicitly before calling them.
|
| static bool IsMediaCodecAvailable();
|
|
|
| + // Returns true if MediaCodec is available, with |sdk| as the sdk version and
|
| + // |model| as the model. This is provided for unit tests; you probably want
|
| + // IsMediaCodecAvailable() otherwise.
|
| + // TODO(liberato): merge this with IsMediaCodecAvailable, and provide a way
|
| + // to mock BuildInfo instead.
|
| + static bool IsMediaCodecAvailableFor(int sdk, const char* model);
|
| +
|
| // Returns true if MediaCodec.setParameters() is available on the device.
|
| static bool SupportsSetParameters();
|
|
|
|
|