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

Unified Diff: media/base/media.cc

Issue 1840563002: Revert of 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
« no previous file with comments | « media/base/media.h ('k') | media/filters/stream_parser_factory.cc » ('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 954fb198191d0b9204beac5babeb071c5c6c3429..b2e1c4520174e7a04fb50c393dd3c32646700d2d 100644
--- a/media/base/media.cc
+++ b/media/base/media.cc
@@ -107,6 +107,15 @@
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()
« no previous file with comments | « media/base/media.h ('k') | media/filters/stream_parser_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698