| 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 211d9f038bab66a82c83b25e896ba1a1e6f6e5b2..e1fcb1844b42b9669f8e988680ca7aea593daab7 100644
|
| --- a/media/base/android/media_codec_util.h
|
| +++ b/media/base/android/media_codec_util.h
|
| @@ -27,6 +27,15 @@ namespace media {
|
| } \
|
| } while (0)
|
|
|
| +// Helper macro to skip the test if VP8 decoding isn't supported.
|
| +#define SKIP_TEST_IF_VP8_DECODER_IS_NOT_SUPPORTED() \
|
| + do { \
|
| + if (!MediaCodecUtil::IsVp8DecoderAvailable()) { \
|
| + VLOG(0) << "Could not run test - not supported on device."; \
|
| + return; \
|
| + } \
|
| + } while (0)
|
| +
|
| // Codec direction. Keep this in sync with MediaCodecUtil.java.
|
| enum MediaCodecDirection {
|
| MEDIA_CODEC_DECODER,
|
|
|