Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(525)

Unified Diff: media/base/media.cc

Issue 2723833002: WebM support for new multipart VP9 string. (Closed)
Patch Set: Rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/media.h ('k') | media/base/media_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « media/base/media.h ('k') | media/base/media_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698