Remove runtime NEON detection
Chrome does not detect NEON instruction set at runtime in WebRTC code starting with M50, which is now in Stable. Remove support for runtime detection for simplicity. The only remaining piece of Chrome that will continue to depend on runtime detection is /net, where devices with _broken_ neon support are also detected, and it is not configurable via GYP/GN. BUG=522035 NOPRESUBMIT=true Review-Url: https://codereview.webrtc.org/1955413003 Cr-Commit-Position: refs/heads/master@{#12778}
This commit is contained in:
@ -45,14 +45,6 @@ std::unique_ptr<DenoiserFilter> DenoiserFilter::Create(
|
||||
filter.reset(new DenoiserFilterNEON());
|
||||
if (cpu_type != nullptr)
|
||||
*cpu_type = CPU_NEON;
|
||||
#elif defined(WEBRTC_DETECT_NEON)
|
||||
if (WebRtc_GetCPUFeaturesARM() & kCPUFeatureNEON) {
|
||||
filter.reset(new DenoiserFilterNEON());
|
||||
if (cpu_type != nullptr)
|
||||
*cpu_type = CPU_NEON;
|
||||
} else {
|
||||
filter.reset(new DenoiserFilterC());
|
||||
}
|
||||
#else
|
||||
filter.reset(new DenoiserFilterC());
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user