Port audio logging to Mojo
This CL introduces a mojo interface for audio logging and makes the
following classes from the audio service use it:
- AudioInputDelegateImpl
- AudioOutputDelegateImpl
- AudioOutputDispatcherImpl
Due to layering restrictions, AudioOutputDispatcherImpl cannot access
mojo interfaces directly. To work around this limitation, this CL also
introduces the MojoAudioLogAdapter class, which wraps mojo audio logs
in the existing media::AudioLog interface.
Bug: 812568
Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: I13a90ed12ddcd33944dffa8dda83df276905af68
Reviewed-on: https://chromium-review.googlesource.com/921282
Commit-Queue: Guido Urdaneta <[email protected]>
Reviewed-by: Max Morin <[email protected]>
Reviewed-by: Dale Curtis <[email protected]>
Reviewed-by: Jochen Eisinger <[email protected]>
Reviewed-by: Kinuko Yasuda <[email protected]>
Cr-Commit-Position: refs/heads/master@{#537767}
diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn
index 4b154574..a852d19 100644
--- a/content/browser/BUILD.gn
+++ b/content/browser/BUILD.gn
@@ -1101,6 +1101,8 @@
"media/media_web_contents_observer.h",
"media/midi_host.cc",
"media/midi_host.h",
+ "media/mojo_audio_logging_adapter.cc",
+ "media/mojo_audio_logging_adapter.h",
"media/session/audio_focus_delegate.h",
"media/session/audio_focus_delegate_android.cc",
"media/session/audio_focus_delegate_android.h",