Chromium Code Reviews| 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..af93b39b735d6c049c74ad0a76940513bb29690f 100644 |
| --- a/media/base/android/media_codec_util.h |
| +++ b/media/base/android/media_codec_util.h |
| @@ -46,6 +46,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 primarily for unit tests; you |
|
watk
2017/02/10 22:14:13
nit: Remove "primarily". Makes it sound like there
liberato (no reviews please)
2017/02/13 21:24:09
Done.
|
| + // probably want IsMediaCodecAvailable() otherwise. |
| + // TODO(liberato): merge this with IsMediaCodecAvailable, and provide a way |
| + // to mock BuildInfo instead. |
| + static bool IsMediaCodecAvailableForSdk(int sdk, const char* model); |
| + |
| // Returns true if MediaCodec.setParameters() is available on the device. |
| static bool SupportsSetParameters(); |