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

Unified Diff: media/base/media.cc

Issue 1825763002: media: Enable Unified Media Pipeline for MSE and EME on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: media/base/media.cc
diff --git a/media/base/media.cc b/media/base/media.cc
index b2e1c4520174e7a04fb50c393dd3c32646700d2d..80d88d9f32369d49b4209876fd32d1414e5022c2 100644
--- a/media/base/media.cc
+++ b/media/base/media.cc
@@ -74,6 +74,14 @@ void InitializeMediaLibrary() {
g_media_library.Get();
}
+bool IsMojoCdmEnabled() {
ddorwin 2016/03/24 18:05:11 Should this be ifdef'd to ENABLE_MOJO_CDMS?
xhwang 2016/03/24 21:26:04 Good point. Actually "media" should not know about
+#if defined(OS_ANDROID)
+ return IsUnifiedMediaPipelineEnabled();
+#else
+ return true;
+#endif
+}
+
#if defined(OS_ANDROID)
void EnablePlatformDecoderSupport() {
g_media_library.Pointer()->enable_platform_decoder_support();
@@ -107,15 +115,6 @@ bool IsUnifiedMediaPipelineEnabled() {
base::StartsWith(group_name, "Enabled", base::CompareCase::SENSITIVE);
}
-bool IsUnifiedMediaPipelineEnabledForMse() {
- // Don't check IsUnifiedMediaPipelineEnabled() here since we don't want MSE to
- // be enabled via experiment yet; only when the existing implementation can't
- // be used (i.e. MediaCodec unavailable).
- return base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableUnifiedMediaPipeline) ||
- !MediaCodecUtil::IsMediaCodecAvailable();
-}
-
bool ArePlatformDecodersAvailable() {
return IsUnifiedMediaPipelineEnabled()
? HasPlatformDecoderSupport()

Powered by Google App Engine
This is Rietveld 408576698