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

Unified Diff: media/base/media.cc

Issue 2681643006: Remove kDisableUnifiedMediaPipeline (Closed)
Patch Set: Replace ArePlatformDecodersAvailable Created 3 years, 10 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 38daf05b8edd18960083a6eec0b38b5f9c298c79..7c2a0d8c797e25b2320fcbd138f5ea1208b0f254 100644
--- a/media/base/media.cc
+++ b/media/base/media.cc
@@ -87,15 +87,8 @@ bool PlatformHasOpusSupport() {
return base::android::BuildInfo::GetInstance()->sdk_int() >= 21;
}
-bool IsUnifiedMediaPipelineEnabled() {
- return !base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableUnifiedMediaPipeline);
-}
-
bool ArePlatformDecodersAvailable() {
xhwang 2017/02/08 02:46:01 Maybe we only need HasPlatformDecoderSupport() now
tguilbert 2017/02/09 02:32:17 I made the switch to HasPlatformDecoderSupport(),
- return IsUnifiedMediaPipelineEnabled()
- ? HasPlatformDecoderSupport()
- : MediaCodecUtil::IsMediaCodecAvailable();
+ return HasPlatformDecoderSupport();
}
#endif

Powered by Google App Engine
This is Rietveld 408576698