| Index: content/renderer/media/media_stream_audio_processor.h
|
| diff --git a/content/renderer/media/media_stream_audio_processor.h b/content/renderer/media/media_stream_audio_processor.h
|
| index 8b0c0943a464be3020aef98f2a7ff0a6fdfbecd6..28cccdb4908af6fb4e93d5d75a27e2d7ab1bf5d5 100644
|
| --- a/content/renderer/media/media_stream_audio_processor.h
|
| +++ b/content/renderer/media/media_stream_audio_processor.h
|
| @@ -110,6 +110,17 @@ class CONTENT_EXPORT MediaStreamAudioProcessor :
|
| void OnDisableAecDump() override;
|
| void OnIpcClosing() override;
|
|
|
| + // Returns true if MediaStreamAudioProcessor would modify the audio signal,
|
| + // based on the |constraints| and |effects_flags| parsed from a user media
|
| + // request. If the audio signal would not be modified, there is no need to
|
| + // instantiate a MediaStreamAudioProcessor and feed audio through it. Doing so
|
| + // would waste a non-trivial amount of memory and CPU resources.
|
| + //
|
| + // See media::AudioParameters::PlatformEffectsMask for interpretation of
|
| + // |effects_flags|.
|
| + static bool WouldModifyAudio(const blink::WebMediaConstraints& constraints,
|
| + int effects_flags);
|
| +
|
| protected:
|
| ~MediaStreamAudioProcessor() override;
|
|
|
|
|