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

Unified Diff: content/child/runtime_features.cc

Issue 343593003: Enable WebAudio on ARM64 and MIPS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 | « build/common.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/runtime_features.cc
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc
index 1b471c07c37f0bbec9816152452e86adf3a15e1e..2a67eb1b7e8f1a32a741ce3ff43d272975c84c17 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -28,12 +28,15 @@ static void SetRuntimeFeatureDefaultsForPlatform() {
WebRuntimeFeatures::enablePrefixedEncryptedMedia(false);
WebRuntimeFeatures::enableEncryptedMedia(false);
}
- // WebAudio is enabled by default on ARM and X86 and only when the
- // MediaCodec API is available.
+ // WebAudio is enabled by default but only when the MediaCodec API
+ // is available.
+ AndroidCpuFamily cpu_family = android_getCpuFamily();
WebRuntimeFeatures::enableWebAudio(
media::MediaCodecBridge::IsAvailable() &&
- ((android_getCpuFamily() == ANDROID_CPU_FAMILY_ARM) ||
- (android_getCpuFamily() == ANDROID_CPU_FAMILY_X86)));
+ ((cpu_family == ANDROID_CPU_FAMILY_ARM) ||
+ (cpu_family == ANDROID_CPU_FAMILY_ARM64) ||
+ (cpu_family == ANDROID_CPU_FAMILY_X86) ||
+ (cpu_family == ANDROID_CPU_FAMILY_MIPS)));
// Android supports gamepad API for JellyBean and beyond
WebRuntimeFeatures::enableGamepad(
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698