| Index: media/base/media.cc
|
| diff --git a/media/base/media.cc b/media/base/media.cc
|
| index 77720b44a0a24255d10808980b8cbe6e1ebd667c..23fedb332418736114bf19d8a753939a71347139 100644
|
| --- a/media/base/media.cc
|
| +++ b/media/base/media.cc
|
| @@ -57,6 +57,14 @@ class MediaInitializer {
|
| }
|
| #endif // defined(OS_ANDROID)
|
|
|
| + void enable_new_vp9_codec_string_support() {
|
| + has_new_vp9_codec_string_support_ = true;
|
| + }
|
| +
|
| + bool has_new_vp9_codec_string_support() {
|
| + return has_new_vp9_codec_string_support_;
|
| + }
|
| +
|
| private:
|
| ~MediaInitializer() = delete;
|
|
|
| @@ -64,6 +72,8 @@ class MediaInitializer {
|
| bool has_platform_decoder_support_ = false;
|
| #endif // defined(OS_ANDROID)
|
|
|
| + bool has_new_vp9_codec_string_support_ = false;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(MediaInitializer);
|
| };
|
|
|
| @@ -90,4 +100,12 @@ bool PlatformHasOpusSupport() {
|
| }
|
| #endif // defined(OS_ANDROID)
|
|
|
| +void EnableNewVp9CodecStringSupport() {
|
| + GetMediaInstance()->enable_new_vp9_codec_string_support();
|
| +}
|
| +
|
| +bool HasNewVp9CodecStringSupport() {
|
| + return GetMediaInstance()->has_new_vp9_codec_string_support();
|
| +}
|
| +
|
| } // namespace media
|
|
|