summaryrefslogtreecommitdiffstats
path: root/media/base/media.cc
diff options
context:
space:
mode:
Diffstat (limited to 'media/base/media.cc')
-rw-r--r--media/base/media.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/media/base/media.cc b/media/base/media.cc
index 954fb19..b2e1c45 100644
--- a/media/base/media.cc
+++ b/media/base/media.cc
@@ -107,6 +107,15 @@ 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()