| 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 e0774f172b0f4af9b031ac8baa8bdec2763a5797..ab672ed0a92d8d9331f70a94f208e3a4029f774a 100644
|
| --- a/media/base/android/media_codec_util.h
|
| +++ b/media/base/android/media_codec_util.h
|
| @@ -46,6 +46,12 @@ 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.
|
| + // If |model_for_test| is non-null, then it is used as the model. Otherwise,
|
| + // it is auto-detected.
|
| + // TODO(liberato): replace this with mocked BuildInfo.
|
| + static bool IsMediaCodecAvailableForSdk(int sdk, const char* model_for_test);
|
| +
|
| // Returns true if MediaCodec.setParameters() is available on the device.
|
| static bool SupportsSetParameters();
|
|
|
|
|