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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1029933003: Use the worker task runner instead of the main audio thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix thread check. Created 5 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index e29800cbcee6305ae7f4893414e2345ef73722f1..3a2e524567c2b1ea5b29ba677d324e684c034c37 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -213,7 +213,7 @@ void RemoveShaderInfo(int32 id) {
scoped_ptr<IPC::Message> SendAudioHardwareConfig() {
media::AudioManager* am = media::AudioManager::Get();
- DCHECK(am->GetTaskRunner()->BelongsToCurrentThread());
+ DCHECK(am->GetWorkerTaskRunner()->BelongsToCurrentThread());
return make_scoped_ptr(new ViewMsg_SetAudioHardwareConfig(
am->GetDefaultOutputStreamParameters(),
am->GetInputStreamParameters(media::AudioManagerBase::kDefaultDeviceId)));
@@ -2338,7 +2338,7 @@ void RenderProcessHostImpl::OnProcessLaunched() {
}
base::PostTaskAndReplyWithResult(
- media::AudioManager::Get()->GetTaskRunner().get(), FROM_HERE,
+ media::AudioManager::Get()->GetWorkerTaskRunner().get(), FROM_HERE,
base::Bind(&SendAudioHardwareConfig),
base::Bind(base::IgnoreResult(&RenderProcessHostImpl::SendHelper),
weak_factory_.GetWeakPtr()));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698