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

Unified Diff: media/mojo/services/test_mojo_media_client.cc

Issue 1942803002: Caching AudioOutputDevice instances in mixer manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make WebAudioSourceProvider to always return real sink info reguardless the client - to avoid behavior change. Created 4 years, 7 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 | « media/mojo/services/test_mojo_media_client.h ('k') | media/renderers/audio_renderer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/test_mojo_media_client.cc
diff --git a/media/mojo/services/test_mojo_media_client.cc b/media/mojo/services/test_mojo_media_client.cc
index f089a0fe007d589e0d6bd6a38882ff79fb0e0624..3b4fbde2f224f7ef267727a8bd4c0809423d942b 100644
--- a/media/mojo/services/test_mojo_media_client.cc
+++ b/media/mojo/services/test_mojo_media_client.cc
@@ -39,10 +39,6 @@ void TestMojoMediaClient::Initialize() {
base::RunLoop().RunUntilIdle();
}
- audio_hardware_config_.reset(new AudioHardwareConfig(
- audio_manager->GetInputStreamParameters(
- AudioDeviceDescription::kDefaultDeviceId),
- audio_manager->GetDefaultOutputStreamParameters()));
}
void TestMojoMediaClient::WillQuit() {
@@ -58,8 +54,7 @@ std::unique_ptr<RendererFactory> TestMojoMediaClient::CreateRendererFactory(
const scoped_refptr<MediaLog>& media_log) {
DVLOG(1) << __FUNCTION__;
return base::WrapUnique(new DefaultRendererFactory(
- media_log, nullptr, DefaultRendererFactory::GetGpuFactoriesCB(),
- *audio_hardware_config_));
+ media_log, nullptr, DefaultRendererFactory::GetGpuFactoriesCB()));
}
AudioRendererSink* TestMojoMediaClient::CreateAudioRendererSink() {
« no previous file with comments | « media/mojo/services/test_mojo_media_client.h ('k') | media/renderers/audio_renderer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698